Home
last modified time | relevance | path

Searched hist:"10 da4f795f965f22039aa2930b6f80964aad3ee5" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/md/
H A Ddm.cdiff 10da4f795f965f22039aa2930b6f80964aad3ee5 Mon Jun 26 02:27:25 CDT 2006 Jeff Mahoney <jeffm@suse.com> [PATCH] dm: add module ref counting

The reference counting on dm-mod is zero if no mapped devices are open. This
is incorrect, and can lead to an oops if the module is unloaded while mapped
devices exist.

This patch claims a reference to the module whenever a device is created, and
drops it again when the device is freed.

Devices must be removed before dm-mod is unloaded.

[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>