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)
committerLuis Henriques <luis.henriques@canonical.com>
Mon, 30 Apr 2012 18:15:07 +0000 (19:15 +0100)
commit3c7759063a7efe1857f8bd5b949e915b18d57f71
tree11f8f53e44e44d78945b9354560bb0074c80113f
parentc0667280bbc0e5ebec00576a2320c5ed8c9cc698
cciss: Initialize scsi host max_sectors for tape drive support

BugLink: http://bugs.launchpad.net/bugs/987337

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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/block/cciss_scsi.c