]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dm snapshot: avoid dropping lock in __find_pending_exception
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 3 Apr 2009 17:45:16 +0000 (17:45 +0000)
committerChris Wright <chrisw@sous-sol.org>
Mon, 27 Apr 2009 17:36:57 +0000 (10:36 -0700)
commite231d89b16b1e137fb098a14a6440da4b4a24786
tree6f05135416362812c6ffeb86fbcd414d1140d40e
parent135c58d2f19a471e00006573c9b6e3c4f0c6abd6
dm snapshot: avoid dropping lock in __find_pending_exception

upstream commit: c66213921c816f6b1b16a84911618ba9a363b134

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>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/md/dm-snap.c