]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] dm: change minor_lock to spinlock
authorJeff Mahoney <jeffm@suse.com>
Mon, 26 Jun 2006 07:27:22 +0000 (00:27 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:34 +0000 (09:58 -0700)
commitf32c10b09940cffc3620ce111315ec44343fd3ca
treee5f1ee2febebd9c3b2426973a054ae16b5a80640
parent62f75c2f3244553b1290447abd1f1e6b1144d3e9
[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 <jeffm@suse.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm.c