* [PATCH resend 0/1] USB: uas: Fix slave queue_depth not being set
@ 2016-05-31 7:18 Hans de Goede
2016-05-31 7:18 ` [PATCH resend] " Hans de Goede
0 siblings, 1 reply; 4+ messages in thread
From: Hans de Goede @ 2016-05-31 7:18 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Gerd Hoffmann, Alan Stern, linux-usb-u79uwXL29TY76Z2rM5mHXA,
linux-scsi-u79uwXL29TY76Z2rM5mHXA, stable-u79uwXL29TY76Z2rM5mHXA
Hi Greg,
There was some discussion about this patch during its initial posting,
but the concensus seems to be that this patch, which is in essence a
partial revert of the patch causing the problem, is the best way to fix
this.
So I'm resending this to make sure it does not fall through the cracks,
given that this fixes a (performance) regression.
Regards,
Hans
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH resend] USB: uas: Fix slave queue_depth not being set
2016-05-31 7:18 [PATCH resend 0/1] USB: uas: Fix slave queue_depth not being set Hans de Goede
@ 2016-05-31 7:18 ` Hans de Goede
2016-06-13 12:05 ` Oliver Neukum
0 siblings, 1 reply; 4+ messages in thread
From: Hans de Goede @ 2016-05-31 7:18 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Gerd Hoffmann, Alan Stern, linux-usb, linux-scsi, stable,
Hans de Goede
Commit 198de51dbc34 ("USB: uas: Limit qdepth at the scsi-host level")
removed the scsi_change_queue_depth() call from uas_slave_configure()
assuming that the slave would inherit the host's queue_depth, which
that commit sets to the same value.
This is incorrect, without the scsi_change_queue_depth() call the slave's
queue_depth defaults to 1, introducing a performance regression.
This commit restores the call, fixing the performance regression.
Cc: stable@vger.kernel.org
Fixes: 198de51dbc34 ("USB: uas: Limit qdepth at the scsi-host level")
Reported-by: Tom Yan <tom.ty89@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
drivers/usb/storage/uas.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c
index 16bc679..ecc7d4b 100644
--- a/drivers/usb/storage/uas.c
+++ b/drivers/usb/storage/uas.c
@@ -835,6 +835,7 @@ static int uas_slave_configure(struct scsi_device *sdev)
if (devinfo->flags & US_FL_BROKEN_FUA)
sdev->broken_fua = 1;
+ scsi_change_queue_depth(sdev, devinfo->qdepth - 2);
return 0;
}
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH resend] USB: uas: Fix slave queue_depth not being set
2016-05-31 7:18 ` [PATCH resend] " Hans de Goede
@ 2016-06-13 12:05 ` Oliver Neukum
[not found] ` <1465819550.15666.23.camel-IBi9RG/b67k@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Oliver Neukum @ 2016-06-13 12:05 UTC (permalink / raw)
To: Hans de Goede
Cc: Greg Kroah-Hartman, Gerd Hoffmann, Alan Stern, linux-scsi,
linux-usb, stable
On Tue, 2016-05-31 at 09:18 +0200, Hans de Goede wrote:
> Commit 198de51dbc34 ("USB: uas: Limit qdepth at the scsi-host level")
> removed the scsi_change_queue_depth() call from uas_slave_configure()
> assuming that the slave would inherit the host's queue_depth, which
> that commit sets to the same value.
>
> This is incorrect, without the scsi_change_queue_depth() call the slave's
> queue_depth defaults to 1, introducing a performance regression.
Hans, may I ask what become of this patch? I don't see it in the queue.
Regards
Oliver
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH resend] USB: uas: Fix slave queue_depth not being set
[not found] ` <1465819550.15666.23.camel-IBi9RG/b67k@public.gmane.org>
@ 2016-06-13 12:56 ` Hans de Goede
0 siblings, 0 replies; 4+ messages in thread
From: Hans de Goede @ 2016-06-13 12:56 UTC (permalink / raw)
To: Oliver Neukum
Cc: Greg Kroah-Hartman, Gerd Hoffmann, Alan Stern,
linux-scsi-u79uwXL29TY76Z2rM5mHXA,
linux-usb-u79uwXL29TY76Z2rM5mHXA, stable-u79uwXL29TY76Z2rM5mHXA
Hi,
On 13-06-16 14:05, Oliver Neukum wrote:
> On Tue, 2016-05-31 at 09:18 +0200, Hans de Goede wrote:
>> Commit 198de51dbc34 ("USB: uas: Limit qdepth at the scsi-host level")
>> removed the scsi_change_queue_depth() call from uas_slave_configure()
>> assuming that the slave would inherit the host's queue_depth, which
>> that commit sets to the same value.
>>
>> This is incorrect, without the scsi_change_queue_depth() call the slave's
>> queue_depth defaults to 1, introducing a performance regression.
>
> Hans, may I ask what become of this patch? I don't see it in the queue.
It is here:
https://git.kernel.org/cgit/linux/kernel/git/gregkh/usb.git/commit/?h=usb-linus&id=593224ea77b1ca842f45cf76f4deeef44dfbacd1
Which is part of:
https://git.kernel.org/cgit/linux/kernel/git/gregkh/usb.git/log/?h=usb-linus
Regards,
Hans
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-06-13 12:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-31 7:18 [PATCH resend 0/1] USB: uas: Fix slave queue_depth not being set Hans de Goede
2016-05-31 7:18 ` [PATCH resend] " Hans de Goede
2016-06-13 12:05 ` Oliver Neukum
[not found] ` <1465819550.15666.23.camel-IBi9RG/b67k@public.gmane.org>
2016-06-13 12:56 ` Hans de Goede
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).