block: blk_cleanup_queue() should call blk_sync_queue()
authorJens Axboe <jens.axboe@oracle.com>
Thu, 18 Sep 2008 16:22:54 +0000 (09:22 -0700)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:18 +0000 (08:56 +0200)
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>
block/blk-core.c

Simple merge