From: Alasdair G Kergon Date: Tue, 3 Oct 2006 08:15:31 +0000 (-0700) Subject: [PATCH] dm snapshot: fix freeing pending exception X-Git-Tag: v2.6.19-rc1~268 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=695368ac3302174531429a90d55c3f7f9b83906e;p=pandora-kernel.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed