linux/drivers/md
Chandra Seetharaman 8a57dfc6f9 dm: avoid destroying table in dm_any_congested
dm_any_congested() just checks for the DMF_BLOCK_IO and has no
code to make sure that suspend waits for dm_any_congested() to
complete.  This patch adds such a check.

Without it, a race can occur with dm_table_put() attempting to
destroying the table in the wrong thread, the one running
dm_any_congested() which is meant to be quick and return
immediately.

Two examples of problems:
1. Sleeping functions called from congested code, the caller
   of which holds a spin lock.
2. An ABBA deadlock between pdflush and multipathd. The two locks
   in contention are inode lock and kernel lock.

Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
2008-11-13 23:39:14 +00:00
..
raid6test
.gitignore
bitmap.c
dm-bio-list.h
dm-bio-record.h
dm-crypt.c dm crypt: remove waitqueue 2008-10-21 17:45:03 +01:00
dm-delay.c dm: remove dm header from targets 2008-10-21 17:44:59 +01:00
dm-exception-store.c dm: remove dm header from targets 2008-10-21 17:44:59 +01:00
dm-io.c dm: remove dm header from targets 2008-10-21 17:44:59 +01:00
dm-ioctl.c
dm-kcopyd.c dm: remove dm header from targets 2008-10-21 17:44:59 +01:00
dm-linear.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/viro/bdev 2008-10-23 10:23:07 -07:00
dm-log.c dm: remove dm header from targets 2008-10-21 17:44:59 +01:00
dm-mpath.c dm mpath: warn if args ignored 2008-11-13 23:39:06 +00:00
dm-mpath.h
dm-path-selector.c dm: remove dm header from targets 2008-10-21 17:44:59 +01:00
dm-path-selector.h
dm-raid1.c dm raid1: flush workqueue before destruction 2008-11-13 23:38:52 +00:00
dm-region-hash.c dm raid1: separate region_hash interface part1 2008-10-21 17:45:06 +01:00
dm-round-robin.c dm: remove dm header from targets 2008-10-21 17:44:59 +01:00
dm-snap.c dm snapshot: wait for chunks in destructor 2008-10-30 13:33:16 +00:00
dm-snap.h dm snapshot: wait for chunks in destructor 2008-10-30 13:33:16 +00:00
dm-stripe.c dm stripe: fix init failure 2008-11-13 23:38:56 +00:00
dm-table.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/viro/bdev 2008-10-23 10:23:07 -07:00
dm-target.c
dm-uevent.c
dm-uevent.h
dm-zero.c dm: remove dm header from targets 2008-10-21 17:44:59 +01:00
dm.c dm: avoid destroying table in dm_any_congested 2008-11-13 23:39:14 +00:00
dm.h dm: publish array_too_big 2008-10-21 17:44:57 +01:00
faulty.c
Kconfig
linear.c md: linear: Fix a division by zero bug for very small arrays. 2008-11-06 19:41:24 +11:00
Makefile dm raid1: separate region_hash interface part1 2008-10-21 17:45:06 +01:00
md.c md: revert the recent addition of a call to the BLKRRPART ioctl. 2008-11-06 17:28:01 +11:00
mktables.c
multipath.c
raid0.c
raid1.c
raid5.c
raid6.h
raid6algos.c
raid6altivec.uc
raid6int.uc
raid6mmx.c
raid6recov.c
raid6sse1.c
raid6sse2.c
raid6x86.h
raid10.c md: fix bug in raid10 recovery. 2008-11-06 17:28:20 +11:00
unroll.pl