Skip to contentSkip to conversation

cciss: fix reporting of max queue depth since init

PATCH Applied Stephen M. Cameron 2 participants 2 messages Aug 25, 2010 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cciss: fix reporting of max queue depth since init

From: Stephen M. Cameron <[email protected]>

The ioctl path and the scsi tape path were not accounting for their additions to the queue depth.

---
 drivers/block/cciss.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/block/cciss.c +2 -0
index 31064df..eef94fa 100644
@@ -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);
 }
maintainer Applied
#1 lore raw
Quoted 4 lines · Stephen M. Cameron

The ioctl path and the scsi tape path were not accounting for their additions to the queue depth.

Applied, thanks.

Signature · 1 line
Jens Axboe