From: Jeff Mahoney Date: Mon, 26 Jun 2006 07:27:24 +0000 (-0700) Subject: [PATCH] dm: fix mapped device ref counting X-Git-Tag: v2.6.18-rc1~664 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ec75f254742766eb729f1d1024a5b4e6692fc5f;p=pandora-kernel.git [PATCH] dm: fix mapped device ref counting To avoid races, _minor_lock must be held while changing mapped device reference counts. There are a few paths where a mapped_device pointer is returned before a reference is taken. This patch fixes them. [akpm: too late for 2.6.17 - suitable for 2.6.17.x after it has settled] Signed-off-by: Jeff Mahoney Signed-off-by: Alasdair G Kergon Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed