USB: usb-storage: increase max_sectors for tape drives
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 23 Mar 2009 13:51:02 +0000 (09:51 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Mar 2009 23:20:26 +0000 (16:20 -0700)
commit5c16034d73da2c1b663aa25dedadbc533b3d811c
tree49d0c57f87a8605ba178f0a3b916a853a3712556
parent090b90118207e786d2990310d063fda5d52cce6e
USB: usb-storage: increase max_sectors for tape drives

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>
drivers/usb/storage/scsiglue.c