Commit a387dbb5 authored by Joe Thornber's avatar Joe Thornber Committed by Linus Torvalds

[PATCH] dm: flush pending IO before dm_suspend

Add a blk_run_queues() call to encourage pending io to flush
when we're doing a dm_suspend().
parent 7be5382e
...@@ -722,6 +722,7 @@ int dm_suspend(struct mapped_device *md) ...@@ -722,6 +722,7 @@ int dm_suspend(struct mapped_device *md)
* Then we wait for the already mapped ios to * Then we wait for the already mapped ios to
* complete. * complete.
*/ */
blk_run_queues();
while (1) { while (1) {
set_current_state(TASK_INTERRUPTIBLE); set_current_state(TASK_INTERRUPTIBLE);
......
Markdown is supported
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