Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 326135
b: refs/heads/master
c: 0393986
h: refs/heads/master
i:
  326133: 9b1ea33
  326131: 9865905
  326127: 5c93901
v: v3
  • Loading branch information
Gerd Hoffmann authored and Greg Kroah-Hartman committed Sep 25, 2012
1 parent 9a0f3d5 commit d8f34a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a0e39e346822d115b2446a7c0032d799c48ac1a5
refs/heads/master: 03939864954cdfccf41c0a8c20e5f2ba623cc482
6 changes: 3 additions & 3 deletions trunk/drivers/usb/storage/uas.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ static int uas_eh_task_mgmt(struct scsi_cmnd *cmnd,
{
struct Scsi_Host *shost = cmnd->device->host;
struct uas_dev_info *devinfo = (void *)shost->hostdata[0];
u16 tag = 9999; /* FIXME */
u16 tag = devinfo->qdepth - 1;

memset(&devinfo->response, 0, sizeof(devinfo->response));
if (uas_submit_sense_urb(shost, GFP_NOIO, tag)) {
Expand Down Expand Up @@ -701,7 +701,7 @@ static int uas_slave_configure(struct scsi_device *sdev)
{
struct uas_dev_info *devinfo = sdev->hostdata;
scsi_set_tag_type(sdev, MSG_ORDERED_TAG);
scsi_activate_tcq(sdev, devinfo->qdepth - 2);
scsi_activate_tcq(sdev, devinfo->qdepth - 3);
return 0;
}

Expand Down Expand Up @@ -880,7 +880,7 @@ static int uas_probe(struct usb_interface *intf, const struct usb_device_id *id)
init_usb_anchor(&devinfo->data_urbs);
uas_configure_endpoints(devinfo);

result = scsi_init_shared_tag_map(shost, devinfo->qdepth - 2);
result = scsi_init_shared_tag_map(shost, devinfo->qdepth - 3);
if (result)
goto free;

Expand Down

0 comments on commit d8f34a7

Please sign in to comment.