[PATCH] dm snapshot: fix freeing pending exception
authorAlasdair G Kergon <agk@redhat.com>
Tue, 3 Oct 2006 08:15:31 +0000 (01:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 3 Oct 2006 15:04:15 +0000 (08:04 -0700)
commit695368ac3302174531429a90d55c3f7f9b83906e
tree515457b78ec2bf95dab7f5b614284ccecda8afbd
parent4b832e8de22726206eb886f6dbff47a0f3fe5168
[PATCH] dm snapshot: fix freeing pending exception

If a snapshot became invalid while there are outstanding pending_exceptions,
when pending_complete() processes each one it forgets to remove the
corresponding exception from its exception table before freeing it.

Fix this by moving the 'out:' label up one statement so that
remove_exception() is always called.  Then __invalidate_exception() no longer
needs to call it and its 'pe' argument become superfluous.

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm-snap.c