]> git.baikalelectronics.ru Git - kernel.git/commit
cciss: Initialize scsi host max_sectors for tape drive support
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Thu, 22 Mar 2012 20:40:08 +0000 (21:40 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 22 Mar 2012 20:40:08 +0000 (21:40 +0100)
commit95212b3110855204595eaeb8e0bd98ab43de7bbf
treeb6fa22aa9b933e728725f8f7684f8f3d34c5376f
parent880b68e4357fcbe42cc1f5eae0aa9e5ea4cb1983
cciss: Initialize scsi host max_sectors for tape drive support

The default is too small (1024 blocks), use h->cciss_max_sectors (8192 blocks)
Without this change, if you try to set the block size of a tape drive above
512*1024, via "mt -f /dev/st0 setblk nnn" where nnn is greater than 524288,
it won't work right.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/cciss_scsi.c