* [PATCH] cciss: Initialize scsi host max_sectors for tape drive support
@ 2012-03-21 21:32 Stephen M. Cameron
2012-03-21 21:44 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: Stephen M. Cameron @ 2012-03-21 21:32 UTC (permalink / raw)
To: axboe; +Cc: stephenmcameron, akpm, mikem, linux-kernel, thenzl
From: Stephen M. Cameron <scameron@beardog.cce.hp.com>
The default is too small (1024 blocks), use h->cciss_max_sectors (8192 blocks)
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
---
drivers/block/cciss_scsi.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/block/cciss_scsi.c b/drivers/block/cciss_scsi.c
index e820b68..f510a9c 100644
--- a/drivers/block/cciss_scsi.c
+++ b/drivers/block/cciss_scsi.c
@@ -866,6 +866,7 @@ cciss_scsi_detect(ctlr_info_t *h)
sh->can_queue = cciss_tape_cmds;
sh->sg_tablesize = h->maxsgentries;
sh->max_cmd_len = MAX_COMMAND_SIZE;
+ sh->max_sectors = h->cciss_max_sectors;
((struct cciss_scsi_adapter_data_t *)
h->scsi_ctlr)->scsi_host = sh;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] cciss: Initialize scsi host max_sectors for tape drive support
2012-03-21 21:32 [PATCH] cciss: Initialize scsi host max_sectors for tape drive support Stephen M. Cameron
@ 2012-03-21 21:44 ` Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2012-03-21 21:44 UTC (permalink / raw)
To: Stephen M. Cameron; +Cc: axboe, stephenmcameron, mikem, linux-kernel, thenzl
On Wed, 21 Mar 2012 16:32:03 -0500
"Stephen M. Cameron" <scameron@beardog.cce.hp.com> wrote:
> From: Stephen M. Cameron <scameron@beardog.cce.hp.com>
>
> The default is too small
So is the changelog.
> (1024 blocks), use h->cciss_max_sectors (8192 blocks)
What problem does this patch solve? What might be the user-visible
effects of the change?
> Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
> ---
> drivers/block/cciss_scsi.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/block/cciss_scsi.c b/drivers/block/cciss_scsi.c
> index e820b68..f510a9c 100644
> --- a/drivers/block/cciss_scsi.c
> +++ b/drivers/block/cciss_scsi.c
> @@ -866,6 +866,7 @@ cciss_scsi_detect(ctlr_info_t *h)
> sh->can_queue = cciss_tape_cmds;
> sh->sg_tablesize = h->maxsgentries;
> sh->max_cmd_len = MAX_COMMAND_SIZE;
> + sh->max_sectors = h->cciss_max_sectors;
>
> ((struct cciss_scsi_adapter_data_t *)
> h->scsi_ctlr)->scsi_host = sh;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-21 21:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-21 21:32 [PATCH] cciss: Initialize scsi host max_sectors for tape drive support Stephen M. Cameron
2012-03-21 21:44 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox