Skip to content
Commit e3335de9 authored by Jens Axboe's avatar Jens Axboe
Browse files

block: blk_cleanup_queue() should call blk_sync_queue()



When a driver calls blk_cleanup_queue(), the device should be fully idle.
However, the block layer may have pending plugging timers and the IO
schedulers may have pending work in the work queues. So quisce the device
by waiting for the timer and flushing the work queues.

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 9246b5f0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment