summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2012-08-30 13:19:27 -0700
committerJens Axboe <axboe@kernel.dk>2012-10-04 11:04:38 +0200
commit70564d04945aa6960272c0714ec3148cb0234ab8 (patch)
tree1e358691df0a16772fd9619f74942dacf8c8a7eb
parentc047730fe8eff4cb3ebdb8891038493aba708b70 (diff)
blk-mq: ensure that we move all entries if a CPU goes down
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--block/blk-mq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index e492be369188..3e22dfbabfc0 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -821,7 +821,7 @@ static int __cpuinit blk_mq_cpu_notify(struct notifier_block *self,
local_irq_disable();
- node = llist_del_first(&per_cpu(ipi_lists, cpu));
+ node = llist_del_all(&per_cpu(ipi_lists, cpu));
llist_for_each_entry(rq, node, ll_list)
__blk_mq_end_io(rq, rq->errors);