Merge remote-tracking branch 'scsi-queue/core-for-3.19' into for-linus
This commit is contained in:
@@ -164,10 +164,10 @@ void usb_stor_show_sense(const struct us_data *us,
|
||||
unsigned char asc,
|
||||
unsigned char ascq)
|
||||
{
|
||||
const char *what, *keystr;
|
||||
const char *what, *keystr, *fmt;
|
||||
|
||||
keystr = scsi_sense_key_string(key);
|
||||
what = scsi_extd_sense_format(asc, ascq);
|
||||
what = scsi_extd_sense_format(asc, ascq, &fmt);
|
||||
|
||||
if (keystr == NULL)
|
||||
keystr = "(Unknown Key)";
|
||||
@@ -175,8 +175,10 @@ void usb_stor_show_sense(const struct us_data *us,
|
||||
what = "(unknown ASC/ASCQ)";
|
||||
|
||||
usb_stor_dbg(us, "%s: ", keystr);
|
||||
US_DEBUGPX(what, ascq);
|
||||
US_DEBUGPX("\n");
|
||||
if (fmt)
|
||||
US_DEBUGPX("%s (%s%x)\n", what, fmt, ascq);
|
||||
else
|
||||
US_DEBUGPX("%s\n", what);
|
||||
}
|
||||
|
||||
int usb_stor_dbg(const struct us_data *us, const char *fmt, ...)
|
||||
|
@@ -181,7 +181,7 @@ static int uas_get_tag(struct scsi_cmnd *cmnd)
|
||||
{
|
||||
int tag;
|
||||
|
||||
if (blk_rq_tagged(cmnd->request))
|
||||
if (cmnd->flags & SCMD_TAGGED)
|
||||
tag = cmnd->request->tag + 2;
|
||||
else
|
||||
tag = 1;
|
||||
@@ -799,8 +799,7 @@ static int uas_slave_configure(struct scsi_device *sdev)
|
||||
if (devinfo->flags & US_FL_NO_REPORT_OPCODES)
|
||||
sdev->no_report_opcodes = 1;
|
||||
|
||||
scsi_set_tag_type(sdev, MSG_ORDERED_TAG);
|
||||
scsi_activate_tcq(sdev, devinfo->qdepth - 2);
|
||||
scsi_adjust_queue_depth(sdev, devinfo->qdepth - 2);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -817,7 +816,6 @@ static struct scsi_host_template uas_host_template = {
|
||||
.sg_tablesize = SG_NONE,
|
||||
.cmd_per_lun = 1, /* until we override it */
|
||||
.skip_settle_delay = 1,
|
||||
.ordered_tag = 1,
|
||||
|
||||
/*
|
||||
* The uas drivers expects tags not to be bigger than the maximum
|
||||
@@ -825,6 +823,7 @@ static struct scsi_host_template uas_host_template = {
|
||||
* allocator.
|
||||
*/
|
||||
.disable_blk_mq = true,
|
||||
.use_blk_tags = 1,
|
||||
};
|
||||
|
||||
#define UNUSUAL_DEV(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax, \
|
||||
|
Reference in New Issue
Block a user