/* scsi_tgt_queue_command - queue command for userspace processing @cmd: scsi command @scsilun: scsi lun @tag: unique value to identify this command for tmf  */
int scsi_tgt_queue_command(struct scsi_cmnd *cmd, u64 itn_id, struct scsi_lun *scsilun, u64 tag)
/* scsi_tgt_queue_command - queue command for userspace processing @cmd: scsi command @scsilun: scsi lun @tag: unique value to identify this command for tmf  */
int scsi_tgt_queue_command(struct scsi_cmnd *cmd, u64 itn_id, struct scsi_lun *scsilun, u64 tag)
{
	struct scsi_tgt_cmd *tcmd = cmd->request->end_io_data;
	int err;
	init_scsi_tgt_cmd(cmd->request, tcmd, itn_id, tag);
	err = scsi_tgt_uspace_send_cmd(cmd, itn_id, scsilun, tag);
	if (err)
		cmd_hashlist_del(cmd);
	return err;
}