From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 7 Feb 2018 08:44:55 +0800 From: Ming Lei To: Omar Sandoval Cc: Jens Axboe , linux-block@vger.kernel.org, Christoph Hellwig , Mike Snitzer , linux-scsi@vger.kernel.org, Hannes Reinecke , Arun Easi , Omar Sandoval , "Martin K . Petersen" , James Bottomley , Christoph Hellwig , Don Brace , Kashyap Desai , Peter Rivera , Paolo Bonzini , Laurence Oberman Subject: Re: [PATCH V2 2/8] blk-mq: introduce BLK_MQ_F_GLOBAL_TAGS Message-ID: <20180207004454.GB13470@ming.t460p> References: <20180205152035.15016-1-ming.lei@redhat.com> <20180205152035.15016-3-ming.lei@redhat.com> <20180206203336.GC16027@vader.DHCP.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20180206203336.GC16027@vader.DHCP.thefacebook.com> List-ID: On Tue, Feb 06, 2018 at 12:33:36PM -0800, Omar Sandoval wrote: > On Mon, Feb 05, 2018 at 11:20:29PM +0800, Ming Lei wrote: ...... > > > > + /* need to restart all hw queues for global tags */ > > + if (hctx->flags & BLK_MQ_F_GLOBAL_TAGS) { > > + struct blk_mq_hw_ctx *hctx2; > > + int i; > > + > > + queue_for_each_hw_ctx(hctx->queue, hctx2, i) > > + if (blk_mq_run_hw_queue(hctx2, true)) > > + return true; > > Is it intentional that we stop after the first hw queue does work? That > seems fine but it's a little confusing because the comment claims we > restart everything. Good catch, will update comment in V3. Thanks, Ming