blk-mq: don't use preempt_count() to check for right CPU
authorJens Axboe <axboe@fb.com>
Wed, 16 Apr 2014 15:23:48 +0000 (09:23 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:45 +0000 (12:54 -0600)
commit784a5805e15f56a157aecefac1879c230f637669
treeb1f5038df510b01dd7fd4e2649347109b505310a
parent586565a016e11d7521a0746b95271c7b2cee5eb8
blk-mq: don't use preempt_count() to check for right CPU

UP or CONFIG_PREEMPT_NONE will return 0, and what we really
want to check is whether or not we are on the right CPU.
So don't make PREEMPT part of this, just test the CPU in
the mask directly.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c