* [PATCH] cciss: fix reporting of max queue depth since init
@ 2010-08-25 15:43 Stephen M. Cameron
2010-08-25 17:59 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Stephen M. Cameron @ 2010-08-25 15:43 UTC (permalink / raw)
To: axboe; +Cc: akpm, mikem, linux-kernel, brace
From: Stephen M. Cameron <scameron@beardog.cce.hp.com>
The ioctl path and the scsi tape path were not accounting
for their additions to the queue depth.
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
---
drivers/block/cciss.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index 31064df..eef94fa 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -297,6 +297,8 @@ static void enqueue_cmd_and_start_io(ctlr_info_t *h,
spin_lock_irqsave(&h->lock, flags);
addQ(&h->reqQ, c);
h->Qdepth++;
+ if (h->Qdepth > h->maxQsinceinit)
+ h->maxQsinceinit = h->Qdepth;
start_io(h);
spin_unlock_irqrestore(&h->lock, flags);
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] cciss: fix reporting of max queue depth since init
2010-08-25 15:43 [PATCH] cciss: fix reporting of max queue depth since init Stephen M. Cameron
@ 2010-08-25 17:59 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2010-08-25 17:59 UTC (permalink / raw)
To: Stephen M. Cameron; +Cc: akpm, mikem, linux-kernel, brace
On 08/25/2010 05:43 PM, Stephen M. Cameron wrote:
> The ioctl path and the scsi tape path were not accounting
> for their additions to the queue depth.
>
> Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Applied, thanks.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-25 17:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-25 15:43 [PATCH] cciss: fix reporting of max queue depth since init Stephen M. Cameron
2010-08-25 17:59 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox