diff options
-rw-r--r-- | block/blk-mq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 9180052d42cc..1fa01ff0f9bc 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c | |||
@@ -534,7 +534,7 @@ static void __blk_mq_run_hw_queue(struct blk_mq_hw_ctx *hctx) | |||
534 | LIST_HEAD(rq_list); | 534 | LIST_HEAD(rq_list); |
535 | int bit, queued; | 535 | int bit, queued; |
536 | 536 | ||
537 | WARN_ON(!preempt_count()); | 537 | WARN_ON(!cpumask_test_cpu(raw_smp_processor_id(), hctx->cpumask)); |
538 | 538 | ||
539 | if (unlikely(test_bit(BLK_MQ_S_STOPPED, &hctx->state))) | 539 | if (unlikely(test_bit(BLK_MQ_S_STOPPED, &hctx->state))) |
540 | return; | 540 | return; |