From: Mikulas Patocka Date: Fri, 16 Oct 2009 22:18:16 +0000 (+0100) Subject: dm snapshot: lock snapshot while supplying status X-Git-Tag: v2.6.32-rc6~118^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c6fff445d7aa753957856278d4d93bcad6e2c14;p=pandora-kernel.git dm snapshot: lock snapshot while supplying status This patch locks the snapshot when returning status. It fixes a race when it could return an invalid number of free chunks if someone was simultaneously modifying it. Cc: stable@kernel.org Signed-off-by: Mikulas Patocka Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed