dm snapshot: avoid dropping lock in __find_pending_exception
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 2 Apr 2009 18:55:25 +0000 (19:55 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 2 Apr 2009 18:55:25 +0000 (19:55 +0100)
commitc66213921c816f6b1b16a84911618ba9a363b134
tree2b99c1ef34eea840fe3d517d8a20fb59a5a84044
parent2913808eb56a6445a7b277eb8d17651c8defb035
dm snapshot: avoid dropping lock in __find_pending_exception

It is uncommon and bug-prone to drop a lock in a function that is called with
the lock held, so this is moved to the caller.

Cc: stable@kernel.org
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-snap.c