On 10/6/19 4:45 AM, Ming Lei wrote:
> We will stop hw queue and wait for completion of in-flight requests
> when one hctx is becoming dead in the following patch. This way may
> cause dead-lock for some stacking blk-mq drivers, such as dm-rq and
> loop.
> 
> Add blk-mq flag of BLK_MQ_F_NO_MANAGED_IRQ and mark it for dm-rq and
> loop, so we needn't to wait for completion of in-flight requests of
> dm-rq & loop, then the potential dead-lock can be avoided.
> 
> Cc: Bart Van Assche <[email protected]>
> Cc: Hannes Reinecke <[email protected]>
> Cc: Christoph Hellwig <[email protected]>
> Cc: Thomas Gleixner <[email protected]>
> Cc: Keith Busch <[email protected]>
> Signed-off-by: Ming Lei <[email protected]>
> ---
>  block/blk-mq-debugfs.c | 1 +
>  drivers/block/loop.c   | 2 +-
>  drivers/md/dm-rq.c     | 2 +-
>  include/linux/blk-mq.h | 1 +
>  4 files changed, 4 insertions(+), 2 deletions(-)
> 
I would have preferred to queue this patch after the next one;
introducing a flag which doesn't do anything is a bit odd to me.
But anyway:

Reviewed-by: Hannes Reinecke <[email protected]>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                   Teamlead Storage & Networking
[email protected]                                      +49 911 74053 688
SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 247165 (AG München), GF: Felix Imendörffer

Reply via email to