linux-stable-rt/drivers
Alasdair G Kergon 5c6bd75d06 [PATCH] dm: prevent removal if open
If you misuse the device-mapper interface (or there's a bug in your userspace
tools) it's possible to end up with 'unlinked' mapped devices that cannot be
removed until you reboot (along with uninterruptible processes).

This patch prevents you from removing a device that is still open.

It introduces dm_lock_for_deletion() which is called when a device is about to
be removed to ensure that nothing has it open and nothing further can open it.
 It uses a private open_count for this which also lets us remove one of the
problematic bdget_disk() calls elsewhere.

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-26 09:58:36 -07:00
..
acorn
acpi [PATCH] Time: i386 Conversion - part 2: Rework TSC Support 2006-06-26 09:58:21 -07:00
amba
atm
base
block
bluetooth
cdrom
char [PATCH] VT binding: Make VT binding a Kconfig option 2006-06-26 09:58:33 -07:00
clocksource [PATCH] GTOD: add scx200 HRT clocksource 2006-06-26 09:58:21 -07:00
connector
cpufreq
crypto
dio
dma
edac
eisa
fc4
firmware
hwmon
i2c
ide [PATCH] Remove code that has long been commented out from pdc20265_old 2006-06-26 09:58:28 -07:00
ieee1394
infiniband
input
isdn [PATCH] isdn4linux: Gigaset driver cleanup 2006-06-26 09:58:23 -07:00
leds
macintosh
mca
md [PATCH] dm: prevent removal if open 2006-06-26 09:58:36 -07:00
media
message
mfd
misc
mmc
mtd
net [PATCH] Add bcm43xx HW RNG support 2006-06-26 09:58:19 -07:00
nubus
oprofile
parisc
parport
pci
pcmcia
pnp
rapidio
rtc
s390
sbus
scsi
serial
sh
sn
spi
tc
telephony
usb
video [PATCH] VT binding: Make sticon support binding 2006-06-26 09:58:34 -07:00
w1
zorro
Kconfig
Makefile [PATCH] Time: i386 Clocksource Drivers 2006-06-26 09:58:21 -07:00