From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Bart Van Assche To: "axboe@kernel.dk" , "ming.lei@redhat.com" CC: "hch@infradead.org" , "linux-block@vger.kernel.org" , "osandov@fb.com" Subject: Re: [PATCH 0/4] blk-mq: support to use hw tag for scheduling Date: Wed, 3 May 2017 17:15:23 +0000 Message-ID: <1493831722.3901.19.camel@sandisk.com> References: <20170428151539.25514-1-ming.lei@redhat.com> <839682da-f375-8eab-d6f5-fcf1457150f1@fb.com> <20170503040303.GA20187@ming.t460p> <370fbeb6-d832-968a-2759-47f16b866551@kernel.dk> <20170503150351.GA7927@ming.t460p> <31bb973e-d9cf-9454-58fd-4893701088c5@kernel.dk> <20170503153808.GB7927@ming.t460p> <20170503165201.GB9706@ming.t460p> <20170503170315.GD9706@ming.t460p> <24ff7ca6-73d6-f8a5-b7d9-e92d0bfdb4b0@kernel.dk> In-Reply-To: <24ff7ca6-73d6-f8a5-b7d9-e92d0bfdb4b0@kernel.dk> Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 List-ID: On Wed, 2017-05-03 at 11:07 -0600, Jens Axboe wrote: > +void blk_mq_stop_hw_queues(struct request_queue *q) > +{ > + __blk_mq_stop_hw_queues(q, false); > } > EXPORT_SYMBOL(blk_mq_stop_hw_queues); Hello Jens, So the approach of this patch is to make all blk_mq_stop_hw_queue() and blk_mq_stop_hw_queues() callers cancel run_work without waiting? That should make the BUG reported by Ming disappear. However, I think we may want to review all calls from block drivers to blk_mq_stop_hw_queues(). There are drivers that call this function to quiesce I/O so I think these need the synchronous work cancellation ... Bart.=