commit | e3335de94067dbebe22e3962632ead34e832cb60 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Thu Sep 18 09:22:54 2008 -0700 |
committer | Jens Axboe <jens.axboe@oracle.com> | Thu Oct 09 08:56:18 2008 +0200 |
tree | 93d88fd70ce8af33d9444e9af91a4e0635a64c96 | |
parent | 9246b5f06deeea541e7c62437c2ad19a0b1172c0 [diff] |
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: Jens Axboe <jens.axboe@oracle.com>