OSDN Git Service

blk-mq: move hctx lock/unlock into a helper
authorJens Axboe <axboe@kernel.dk>
Tue, 9 Jan 2018 16:29:46 +0000 (08:29 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 9 Jan 2018 16:31:15 +0000 (09:31 -0700)
commit04ced159cec863f9bc27015d6b970bb13cfa6176
tree6989c083933a76a2a35992b9b2ad51279e16e0a3
parent0d52af590552473666da5b6111e7182d6cd23f92
blk-mq: move hctx lock/unlock into a helper

Move the RCU vs SRCU logic into lock/unlock helpers, which makes
the actual functional bits within the locked region much easier
to read.

tj: Reordered in front of timeout revamp patches and added the missing
    blk_mq_run_hw_queue() conversion.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c