Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755563AbbFUNxA (ORCPT ); Sun, 21 Jun 2015 09:53:00 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:35080 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753380AbbFUNwx (ORCPT ); Sun, 21 Jun 2015 09:52:53 -0400 From: Akinobu Mita To: linux-kernel@vger.kernel.org, Jens Axboe Cc: Akinobu Mita Subject: [PATCH 0/4] blk-mq: fix race conditions on cpu hotplug handling Date: Sun, 21 Jun 2015 22:52:27 +0900 Message-Id: <1434894751-6877-1-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1087 Lines: 34 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/