From: Jeff Mahoney Date: Mon, 26 Jun 2006 07:27:22 +0000 (-0700) Subject: [PATCH] dm: change minor_lock to spinlock X-Git-Tag: v2.6.18-rc1~666 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f32c10b09940cffc3620ce111315ec44343fd3ca;p=pandora-kernel.git [PATCH] dm: change minor_lock to spinlock While removing a device, another another thread might attempt to resurrect it. This patch replaces the _minor_lock mutex with a spinlock and uses atomic_dec_and_lock() to serialize reference counting in dm_put(). [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