]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dm: fix deadlock with request based dm and queue request_fn recursion
authorJens Axboe <axboe@kernel.dk>
Tue, 6 Nov 2012 11:24:26 +0000 (12:24 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Nov 2012 11:24:26 +0000 (12:24 +0100)
commit8ca211056519ac06bc96fb134dca1f8eb2141407
tree234dc265f7af235e1360da7d6e862abacd2f32c0
parentbaf92d83c7747f3114cd21f63930004fc03e8365
dm: fix deadlock with request based dm and queue request_fn recursion

Request based dm attempts to re-run the request queue off the
request completion path. If used with a driver that potentially does
end_io from its request_fn, we could deadlock trying to recurse
back into request dispatch. Fix this by punting the request queue
run to kblockd.

Tested to fix a quickly reproducible deadlock in such a scenario.

Cc: stable@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm.c