From: Mark McLoughlin Date: Tue, 3 Oct 2006 08:15:27 +0000 (-0700) Subject: [PATCH] dm snapshot: fix metadata writing when suspending X-Git-Tag: v2.6.19-rc1~273 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=927ffe7c9a156e259aae31c07dd76072c459ec57;p=pandora-kernel.git [PATCH] dm snapshot: fix metadata writing when suspending When suspending a device-mapper device, dm_suspend() sleeps until all necessary I/O is completed. This state is triggered by a callback from persistent_commit(). But some I/O can still be issued *after* the callback (to prepare the next metadata area for use if the current one is full). This patch delays the callback until after that I/O is complete. Signed-off-by: Mark McLoughlin Signed-off-by: Alasdair G Kergon Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed