dm thin: fix deadlock in __requeue_bio_list
authorJoe Thornber <ejt@redhat.com>
Mon, 3 Mar 2014 15:46:42 +0000 (15:46 +0000)
committerMike Snitzer <snitzer@redhat.com>
Wed, 5 Mar 2014 20:26:58 +0000 (15:26 -0500)
commit18adc57779866ba451237dccca2ebf019be2fa20
treea0f3a9d473fd433b7ffd5a7160ee55ad6d2ffd62
parent3e1a0699095803e53072699a4a1485af7744601d
dm thin: fix deadlock in __requeue_bio_list

The spin lock in requeue_io() was held for too long, allowing deadlock.
Don't worry, due to other issues addressed in the following "dm thin:
fix noflush suspend IO queueing" commit, this code was never called.

Fix this by taking the spin lock for a much shorter period of time.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-thin.c