commit | e3c78ca524d230bc145e902625e88c392a58ddf3 | [log] [tgz] |
---|---|---|
author | Tejun Heo <tj@kernel.org> | Wed Oct 19 14:32:38 2011 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Oct 19 14:32:38 2011 +0200 |
tree | 833eb544dd4180fd626f60da17788aae7830f4dc | |
parent | 315fceee81155ef2aeed9316ca72aeea9347db5c [diff] |
block: reorganize queue draining Reorganize queue draining related code in preparation of queue exit changes. * Factor out actual draining from elv_quiesce_start() to blk_drain_queue(). * Make elv_quiesce_start/end() responsible for their own locking. * Replace open-coded ELVSWITCH clearing in elevator_switch() with elv_quiesce_end(). This patch doesn't cause any visible functional difference. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>