]> git.baikalelectronics.ru Git - kernel.git/commit
block: Let blk_drain_queue() caller obtain the queue lock
authorBart Van Assche <bvanassche@acm.org>
Wed, 28 Nov 2012 12:43:38 +0000 (13:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 6 Dec 2012 13:30:59 +0000 (14:30 +0100)
commitaea1c7a7ebaabf933bf131c9ece3a2d9e1c12b07
tree663e227bd15b6abacd2439c1c4cdfd42ec95e493
parenta2061b6eb56cd1651c2dad70669ee454d4db7ee6
block: Let blk_drain_queue() caller obtain the queue lock

Let the caller of blk_drain_queue() obtain the queue lock to improve
readability of the patch called "Avoid that request_fn is invoked on
a dead queue".

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Tejun Heo <tj@kernel.org>
Cc: James Bottomley <JBottomley@Parallels.com>
Cc: Mike Christie <michaelc@cs.wisc.edu>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Chanho Min <chanho.min@lge.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c