USB: usb-storage: increase max_sectors for tape drives
commit7127941c0e5fb2e3c15c4507aeab939e5e686dcd
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 26 Mar 2009 18:25:09 +0000 (26 18:25 +0000)
committerChris Wright <chrisw@sous-sol.org>
Thu, 2 Apr 2009 20:55:15 +0000 (2 13:55 -0700)
tree08ee6502a102b768830c8c2b7c8fac59eeac8395
parent760053b6503cd73758f4994a8305d4bc6f97fcfc
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