diff options
author | Christoph Hellwig <hch@lst.de> | 2014-10-30 06:54:58 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-12 05:19:40 -0500 |
commit | 609aa22f3be76d470a334f39cc2197112dc91bd7 (patch) | |
tree | 710daebfe903df387a3b4a9927badde84620bdc9 /drivers/target/loopback | |
parent | 125c99bc8b6b108d251169a86324a7ed3c6f3cce (diff) |
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>
Diffstat (limited to 'drivers/target/loopback')
-rw-r--r-- | drivers/target/loopback/tcm_loop.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index 3b9c76835b45..e30932f989a1 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c | |||
@@ -135,18 +135,6 @@ static int tcm_loop_change_queue_depth( | |||
135 | return sdev->queue_depth; | 135 | return sdev->queue_depth; |
136 | } | 136 | } |
137 | 137 | ||
138 | /* | ||
139 | * Locate the SAM Task Attr from struct scsi_cmnd * | ||
140 | */ | ||
141 | static int tcm_loop_sam_attr(struct scsi_cmnd *sc, int tag) | ||
142 | { | ||
143 | if (sc->device->tagged_supported && | ||
144 | sc->device->ordered_tags && tag >= 0) | ||
145 | return MSG_ORDERED_TAG; | ||
146 | |||
147 | return MSG_SIMPLE_TAG; | ||
148 | } | ||
149 | |||
150 | static void tcm_loop_submission_work(struct work_struct *work) | 138 | static void tcm_loop_submission_work(struct work_struct *work) |
151 | { | 139 | { |
152 | struct tcm_loop_cmd *tl_cmd = | 140 | struct tcm_loop_cmd *tl_cmd = |
@@ -205,7 +193,7 @@ static void tcm_loop_submission_work(struct work_struct *work) | |||
205 | 193 | ||
206 | rc = target_submit_cmd_map_sgls(se_cmd, tl_nexus->se_sess, sc->cmnd, | 194 | rc = target_submit_cmd_map_sgls(se_cmd, tl_nexus->se_sess, sc->cmnd, |
207 | &tl_cmd->tl_sense_buf[0], tl_cmd->sc->device->lun, | 195 | &tl_cmd->tl_sense_buf[0], tl_cmd->sc->device->lun, |
208 | transfer_length, tcm_loop_sam_attr(sc, tl_cmd->sc_cmd_tag), | 196 | transfer_length, MSG_SIMPLE_TAG, |
209 | sc->sc_data_direction, 0, | 197 | sc->sc_data_direction, 0, |
210 | scsi_sglist(sc), scsi_sg_count(sc), | 198 | scsi_sglist(sc), scsi_sg_count(sc), |
211 | sgl_bidi, sgl_bidi_count, | 199 | sgl_bidi, sgl_bidi_count, |