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>
Wed, 16 Apr 2014 20:15:24 +0000 (14:15 -0600)
commitfd1270d5df6a005e1248e87042159a799cc4b2c9
tree51c0235b1b7fa1df420ac023a35ff05d51867eda
parent8e1a6287d950ca386a738ff2043b3e2252fc0e76
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