From: Stephen M. Cameron Date: Wed, 25 Aug 2010 17:58:53 +0000 (+0200) Subject: cciss: fix reporting of max queue depth since init X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=2a643ec67f9efc4b6921a3dd6e257f3b5360622b;p=deliverable%2Flinux.git cciss: fix reporting of max queue depth since init The ioctl path and the scsi tape path were not accounting for their additions to the queue depth. Signed-off-by: Stephen M. Cameron Signed-off-by: Jens Axboe --- diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 7191c16954d2..6124c2fd2d33 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); }