Re: [PATCH v4 12/12] blk-mq: Warn when attempting to run a hardware queue that is not mapped

2017-06-20 Thread Hannes Reinecke
On 06/20/2017 12:08 AM, Bart Van Assche wrote: > From: Bart Van Assche > > A queue must be frozen while the mapped state of a hardware queue > is changed. Additionally, any change of the mapped state is > followed by a call to blk_mq_map_swqueue() (see also >

Re: [PATCH v4 12/12] blk-mq: Warn when attempting to run a hardware queue that is not mapped

2017-06-19 Thread Bart Van Assche
On Mon, 2017-06-19 at 17:06 -0600, Jens Axboe wrote: > On 06/19/2017 04:08 PM, Bart Van Assche wrote: > > --- a/block/blk-mq.c > > +++ b/block/blk-mq.c > > @@ -1140,8 +1140,9 @@ static int blk_mq_hctx_next_cpu(struct blk_mq_hw_ctx > > *hctx) > > static void __blk_mq_delay_run_hw_queue(struct

Re: [PATCH v4 12/12] blk-mq: Warn when attempting to run a hardware queue that is not mapped

2017-06-19 Thread Jens Axboe
On 06/19/2017 04:08 PM, Bart Van Assche wrote: > From: Bart Van Assche > > A queue must be frozen while the mapped state of a hardware queue > is changed. Additionally, any change of the mapped state is > followed by a call to blk_mq_map_swqueue() (see also >