]> git.baikalelectronics.ru Git - kernel.git/commit
usb: storage: scsiglue: limit USB3 devices to 2048 sectors
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 18 Apr 2016 10:09:10 +0000 (13:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Apr 2016 22:04:38 +0000 (15:04 -0700)
commit6d48a3415a2d2975cb6f66968f5ab0ec07957c0a
treea773717d09fd6af49a154f8c6e702e904480f4b7
parentaffb92007f6e78eb77dbb3ea2b10e5d66ab19c26
usb: storage: scsiglue: limit USB3 devices to 2048 sectors

USB3 devices, because they are much newer, have much
less chance of having issues with larger transfers.

We still keep a limit because anything above 2048
sectors really rendered negligible speed
improvements, so we will simply ignore
that. Transferring 1MiB should already give us
pretty good performance.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/scsiglue.c