Commit 121fd6eb authored by Joe Thornber's avatar Joe Thornber Committed by Linus Torvalds

[PATCH] dm: check correct flag in queue_io()

queue_io() was checking the DMF_SUSPENDED flag rather than the new
DMF_BLOCK_IO flag.  This meant suspend could deadlock under load.
parent b4b88675
......@@ -206,7 +206,7 @@ static int queue_io(struct mapped_device *md, struct bio *bio)
down_write(&md->lock);
if (!test_bit(DMF_SUSPENDED, &md->flags)) {
if (!test_bit(DMF_BLOCK_IO, &md->flags)) {
up_write(&md->lock);
free_deferred(di);
return 1;
......
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