OSDN Git Service

xen/gntdev: Fix partial gntdev_mmap() cleanup
[android-x86/kernel.git] / block / blk-mq.c
index 98a1860..b60798a 100644 (file)
@@ -159,6 +159,8 @@ void blk_freeze_queue(struct request_queue *q)
         * exported to drivers as the only user for unfreeze is blk_mq.
         */
        blk_freeze_queue_start(q);
+       if (!q->mq_ops)
+               blk_drain_queue(q);
        blk_mq_freeze_queue_wait(q);
 }