]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Apr 2012 23:21:24 +0000 (16:21 -0700)
commitaeac9d304531167f19aac6bb914046a5c04785dd
treec6b4c1ba7a4ab5d343c36fa2946e80834bc20b84
parent16f61cb9110047912a6feb40676b10af1a973a1f
cciss: Initialize scsi host max_sectors for tape drive support

commit 395d287526bb60411ff37b19ad9dd38b58ba8732 upstream.

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>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/cciss_scsi.c