]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit38d0d4ff8779d3774eb443256c5e49b3aa7233d2
tree2b99c1ef34eea840fe3d517d8a20fb59a5a84044
parentae845c2edae4857e18645b018b0c0b7e6b03be4c
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