scsi: remove ordered_tags scsi_device field
Remove the ordered_tags field, we haven't been issuing ordered tags based on it since the big barrier rework in 2010. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
@@ -135,18 +135,6 @@ static int tcm_loop_change_queue_depth(
|
||||
return sdev->queue_depth;
|
||||
}
|
||||
|
||||
/*
|
||||
* Locate the SAM Task Attr from struct scsi_cmnd *
|
||||
*/
|
||||
static int tcm_loop_sam_attr(struct scsi_cmnd *sc, int tag)
|
||||
{
|
||||
if (sc->device->tagged_supported &&
|
||||
sc->device->ordered_tags && tag >= 0)
|
||||
return MSG_ORDERED_TAG;
|
||||
|
||||
return MSG_SIMPLE_TAG;
|
||||
}
|
||||
|
||||
static void tcm_loop_submission_work(struct work_struct *work)
|
||||
{
|
||||
struct tcm_loop_cmd *tl_cmd =
|
||||
@@ -205,7 +193,7 @@ static void tcm_loop_submission_work(struct work_struct *work)
|
||||
|
||||
rc = target_submit_cmd_map_sgls(se_cmd, tl_nexus->se_sess, sc->cmnd,
|
||||
&tl_cmd->tl_sense_buf[0], tl_cmd->sc->device->lun,
|
||||
transfer_length, tcm_loop_sam_attr(sc, tl_cmd->sc_cmd_tag),
|
||||
transfer_length, MSG_SIMPLE_TAG,
|
||||
sc->sc_data_direction, 0,
|
||||
scsi_sglist(sc), scsi_sg_count(sc),
|
||||
sgl_bidi, sgl_bidi_count,
|
||||
|
Reference in New Issue
Block a user