mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/4] blk-mq: fix race conditions on cpu hotplug handling
@ 2015-06-21 13:52 Akinobu Mita
  2015-06-21 13:52 ` [PATCH 1/4] blk-mq: fix sysfs registration/unregistration race Akinobu Mita
                   ` (3 more replies)
  0 siblings, 4 replies; 21+ messages in thread
From: Akinobu Mita @ 2015-06-21 13:52 UTC (permalink / raw)
  To: linux-kernel, Jens Axboe; +Cc: Akinobu Mita

This patchset addresses several race conditions on cpu hotplug handling
for blk-mq.  All problems are reproducible by the following script.

while true; do
        echo 0 > /sys/devices/system/cpu/cpu1/online
        echo 1 > /sys/devices/system/cpu/cpu1/online
done &

while true; do
        modprobe -r null_blk
        modprobe null_blk queue_mode=2 irqmode=1
        sleep 0.1
done

Akinobu Mita (4):
  blk-mq: fix sysfs registration/unregistration race
  blk-mq: fix q->mq_map access race
  blk-mq: establish new mapping before cpu starts handling requests
  blk-mq: fix mq_usage_counter race when switching to percpu mode

 block/blk-mq-cpumap.c  |  9 ++++----
 block/blk-mq-sysfs.c   | 21 +++++++++++++++++--
 block/blk-mq.c         | 56 +++++++++++++++++++++++++++++++++-----------------
 block/blk-mq.h         |  3 ++-
 include/linux/blk-mq.h |  1 +
 include/linux/blkdev.h |  6 ++++++
 6 files changed, 70 insertions(+), 26 deletions(-)

-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2015-06-30  9:06 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-21 13:52 [PATCH 0/4] blk-mq: fix race conditions on cpu hotplug handling Akinobu Mita
2015-06-21 13:52 ` [PATCH 1/4] blk-mq: fix sysfs registration/unregistration race Akinobu Mita
2015-06-24  8:59   ` Ming Lei
2015-06-21 13:52 ` [PATCH 2/4] blk-mq: fix q->mq_map access race Akinobu Mita
2015-06-24  9:23   ` Ming Lei
2015-06-21 13:52 ` [PATCH 3/4] blk-mq: establish new mapping before cpu starts handling requests Akinobu Mita
2015-06-24  9:46   ` Ming Lei
2015-06-24 14:34     ` Akinobu Mita
2015-06-24 16:24       ` Ming Lei
2015-06-25  2:56         ` Akinobu Mita
2015-06-25  8:07           ` Ming Lei
2015-06-25 12:49             ` Akinobu Mita
2015-06-25 15:40               ` Ming Lei
2015-06-25 23:35                 ` Akinobu Mita
2015-06-26 17:14                   ` Akinobu Mita
2015-06-27 16:08                     ` Ming Lei
2015-06-29 14:25                       ` Akinobu Mita
2015-06-30  9:06                         ` Ming Lei
2015-06-21 13:52 ` [PATCH 4/4] blk-mq: fix mq_usage_counter race when switching to percpu mode Akinobu Mita
2015-06-24 12:35   ` Ming Lei
2015-06-29 14:31     ` Akinobu Mita

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®