• T
    block: reorganize queue draining · e3c78ca5
    Tejun Heo 提交于
    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: NTejun Heo <tj@kernel.org>
    Signed-off-by: NJens Axboe <axboe@kernel.dk>
    e3c78ca5
blk.h 6.1 KB