mbox series

[0/4] Fir a race between request queue cleanup and running queues

Message ID 20190401212014.192753-1-bvanassche@acm.org (mailing list archive)
Headers show
Series Fir a race between request queue cleanup and running queues | expand

Message

Bart Van Assche April 1, 2019, 9:20 p.m. UTC
Hi Jens,

This patch series fixes a recently reported race between request queue cleanup
and running request queues. The approach followed is not to run the queue
anymore after a request queue has been marked "dead". Please consider this
patch series for kernel v5.1.

Thanks,

Bart.

Bart Van Assche (4):
  block: Move the percpu_ref_exit(&q->q_usage_counter) call into
    __blk_release_queue()
  block: Fix a race between request queue freezing and running queues
  block: Fix a comment in blk_cleanup_queue()
  block: Make blk_cleanup_queue() faster

 block/blk-core.c  | 17 ++---------------
 block/blk-mq.c    |  8 ++++++++
 block/blk-sysfs.c |  1 +
 3 files changed, 11 insertions(+), 15 deletions(-)