kernel-aes67/drivers/md
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
..
raid6test
.gitignore
bitmap.c
dm-bio-list.h
dm-bio-record.h
dm-crypt.c
dm-emc.c
dm-exception-store.c [PATCH] dm snapshot: unify chunk_size 2006-06-26 09:58:34 -07:00
dm-hw-handler.c
dm-hw-handler.h
dm-io.c
dm-io.h
dm-ioctl.c [PATCH] dm: prevent removal if open 2006-06-26 09:58:36 -07:00
dm-linear.c
dm-log.c [PATCH] dm mirror log: sync_count fix 2006-06-26 09:58:35 -07:00
dm-log.h
dm-mpath.c
dm-mpath.h
dm-path-selector.c
dm-path-selector.h
dm-raid1.c [PATCH] dm kcopyd: error accumulation fix 2006-06-26 09:58:35 -07:00
dm-round-robin.c
dm-snap.c [PATCH] dm snapshot: unify chunk_size 2006-06-26 09:58:34 -07:00
dm-snap.h
dm-stripe.c
dm-table.c [PATCH] dm: create error table 2006-06-26 09:58:36 -07:00
dm-target.c
dm-zero.c
dm.c [PATCH] dm: prevent removal if open 2006-06-26 09:58:36 -07:00
dm.h [PATCH] dm: prevent removal if open 2006-06-26 09:58:36 -07:00
faulty.c
Kconfig
kcopyd.c [PATCH] dm kcopyd: error accumulation fix 2006-06-26 09:58:35 -07:00
kcopyd.h
linear.c
Makefile
md.c [PATCH] md: Fix badness in sysfs_notify caused by md_new_event 2006-05-31 16:27:11 -07:00
mktables.c
multipath.c
raid0.c [PATCH] md: fix possible oops when starting a raid0 array 2006-05-23 10:35:31 -07:00
raid1.c [PATCH] md: Fix 'rdev->nr_pending' count when retrying barrier requests 2006-05-01 18:17:42 -07:00
raid5.c
raid6.h
raid6algos.c [PATCH] drivers/md/raid6algos.c: fix a NULL dereference 2006-06-23 07:43:08 -07:00
raid6altivec.uc
raid6int.uc
raid6main.c
raid6mmx.c
raid6recov.c
raid6sse1.c
raid6sse2.c
raid6x86.h
raid10.c
unroll.pl
xor.c