From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCH v3 2/5] blk-mq: Restart a single queue if tag sets are shared To: Bart Van Assche References: <20170406181050.12137-1-bart.vanassche@sandisk.com> <20170406181050.12137-3-bart.vanassche@sandisk.com> <4f5ecfba-f2c9-8b54-f879-86b84f407599@kernel.dk> Cc: linux-block@vger.kernel.org, Christoph Hellwig , Hannes Reinecke From: Jens Axboe Message-ID: Date: Thu, 6 Apr 2017 13:21:28 -0600 MIME-Version: 1.0 In-Reply-To: <4f5ecfba-f2c9-8b54-f879-86b84f407599@kernel.dk> Content-Type: text/plain; charset=windows-1252 List-ID: On 04/06/2017 01:12 PM, Jens Axboe wrote: > On 04/06/2017 12:10 PM, Bart Van Assche wrote: >> + for (i = 0; i < queue->nr_hw_queues; i++) { >> + j = (i + hctx->queue_num + 1) % queue->nr_hw_queues; >> + h = queue->queue_hw_ctx[j]; >> + if (h->tags == tags && blk_mq_sched_restart_hctx(h)) >> + break; > > I'm pretty sure that doing: > > j = i + hctx->queue_num + 1;; And 'i' too many there of course: j = hctx->queue_num + 1;; -- Jens Axboe