aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/storage
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/storage')
-rw-r--r--drivers/usb/storage/scsiglue.c4
-rw-r--r--drivers/usb/storage/sierra_ms.c2
-rw-r--r--drivers/usb/storage/uas.c9
3 files changed, 8 insertions, 7 deletions
diff --git a/drivers/usb/storage/scsiglue.c b/drivers/usb/storage/scsiglue.c
index a688b1e686ea..689ee1fb702a 100644
--- a/drivers/usb/storage/scsiglue.c
+++ b/drivers/usb/storage/scsiglue.c
@@ -285,7 +285,7 @@ static int slave_configure(struct scsi_device *sdev)
285 285
286/* queue a command */ 286/* queue a command */
287/* This is always called with scsi_lock(host) held */ 287/* This is always called with scsi_lock(host) held */
288static int queuecommand(struct scsi_cmnd *srb, 288static int queuecommand_lck(struct scsi_cmnd *srb,
289 void (*done)(struct scsi_cmnd *)) 289 void (*done)(struct scsi_cmnd *))
290{ 290{
291 struct us_data *us = host_to_us(srb->device->host); 291 struct us_data *us = host_to_us(srb->device->host);
@@ -315,6 +315,8 @@ static int queuecommand(struct scsi_cmnd *srb,
315 return 0; 315 return 0;
316} 316}
317 317
318static DEF_SCSI_QCMD(queuecommand)
319
318/*********************************************************************** 320/***********************************************************************
319 * Error handling functions 321 * Error handling functions
320 ***********************************************************************/ 322 ***********************************************************************/
diff --git a/drivers/usb/storage/sierra_ms.c b/drivers/usb/storage/sierra_ms.c
index 57fc2f532cab..ceba512f84d0 100644
--- a/drivers/usb/storage/sierra_ms.c
+++ b/drivers/usb/storage/sierra_ms.c
@@ -121,7 +121,7 @@ static ssize_t show_truinst(struct device *dev, struct device_attribute *attr,
121 } 121 }
122 return result; 122 return result;
123} 123}
124static DEVICE_ATTR(truinst, S_IWUGO | S_IRUGO, show_truinst, NULL); 124static DEVICE_ATTR(truinst, S_IRUGO, show_truinst, NULL);
125 125
126int sierra_ms_init(struct us_data *us) 126int sierra_ms_init(struct us_data *us)
127{ 127{
diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c
index 8d58c6316111..23f0dd9c36d4 100644
--- a/drivers/usb/storage/uas.c
+++ b/drivers/usb/storage/uas.c
@@ -334,10 +334,7 @@ static struct urb *uas_alloc_cmd_urb(struct uas_dev_info *devinfo, gfp_t gfp,
334 334
335 iu->iu_id = IU_ID_COMMAND; 335 iu->iu_id = IU_ID_COMMAND;
336 iu->tag = cpu_to_be16(stream_id); 336 iu->tag = cpu_to_be16(stream_id);
337 if (sdev->ordered_tags && (cmnd->request->cmd_flags & REQ_HARDBARRIER)) 337 iu->prio_attr = UAS_SIMPLE_TAG;
338 iu->prio_attr = UAS_ORDERED_TAG;
339 else
340 iu->prio_attr = UAS_SIMPLE_TAG;
341 iu->len = len; 338 iu->len = len;
342 int_to_scsilun(sdev->lun, &iu->lun); 339 int_to_scsilun(sdev->lun, &iu->lun);
343 memcpy(iu->cdb, cmnd->cmnd, cmnd->cmd_len); 340 memcpy(iu->cdb, cmnd->cmnd, cmnd->cmd_len);
@@ -436,7 +433,7 @@ static int uas_submit_urbs(struct scsi_cmnd *cmnd,
436 return 0; 433 return 0;
437} 434}
438 435
439static int uas_queuecommand(struct scsi_cmnd *cmnd, 436static int uas_queuecommand_lck(struct scsi_cmnd *cmnd,
440 void (*done)(struct scsi_cmnd *)) 437 void (*done)(struct scsi_cmnd *))
441{ 438{
442 struct scsi_device *sdev = cmnd->device; 439 struct scsi_device *sdev = cmnd->device;
@@ -494,6 +491,8 @@ static int uas_queuecommand(struct scsi_cmnd *cmnd,
494 return 0; 491 return 0;
495} 492}
496 493
494static DEF_SCSI_QCMD(uas_queuecommand)
495
497static int uas_eh_abort_handler(struct scsi_cmnd *cmnd) 496static int uas_eh_abort_handler(struct scsi_cmnd *cmnd)
498{ 497{
499 struct scsi_device *sdev = cmnd->device; 498 struct scsi_device *sdev = cmnd->device;