USB: usb-storage: increase max_sectors for tape drives
commit9603c9411f59fa9925361f28743fd9e44be6ad6f
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 26 Mar 2009 18:25:09 +0000 (26 18:25 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 2 May 2009 17:23:27 +0000 (2 10:23 -0700)
tree2d828610780a9c3285feac9e5bd3b4fa23adeb17
parentf4c96e1552f2459347f02afbfd3e2f1daf977e06
USB: usb-storage: increase max_sectors for tape drives

upstream commit: 5c16034d73da2c1b663aa25dedadbc533b3d811c

This patch (as1203) increases the max_sector limit for USB tape
drives.  By default usb-storage sets max_sectors to 240 (i.e., 120 KB)
for all devices.  But tape drives need a higher limit, since tapes can
and do have very large block sizes.  Without the ability to transfer
an entire large block in a single command, such tapes can't be used.

This fixes Bugzilla #12207.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-and-tested-by: Phil Mitchell <philipm@sybase.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/usb/storage/scsiglue.c