NeilBrown
2a2275d630
[PATCH] md: fix potential memalloc deadlock in md
...
If a GFP_KERNEL allocation is attempted in md while the mddev_lock is held,
it is possible for a deadlock to eventuate.
This happens if the array was marked 'clean', and the memalloc triggers a
write-out to the md device.
For the writeout to succeed, the array must be marked 'dirty', and that
requires getting the mddev_lock.
So, before attempting a GFP_KERNEL allocation while holding the lock, make
sure the array is marked 'dirty' (unless it is currently read-only).
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-01-26 13:51:00 -08:00
..
raid6test
.gitignore
bitmap.c
[PATCH] md: avoid reading past the end of a bitmap file
2007-01-26 13:50:59 -08:00
dm-bio-list.h
[PATCH] dm: suspend: add noflush pushback
2006-12-08 08:29:09 -08:00
dm-bio-record.h
dm-crypt.c
[PATCH] dm: map and endio symbolic return codes
2006-12-08 08:29:09 -08:00
dm-emc.c
[PATCH] struct path: rename DM's struct path
2006-12-08 08:28:40 -08:00
dm-exception-store.c
dm-hw-handler.c
dm-hw-handler.h
[PATCH] struct path: rename DM's struct path
2006-12-08 08:28:40 -08:00
dm-io.c
[PATCH] dm io: fix bi_max_vecs
2006-12-08 08:29:08 -08:00
dm-io.h
dm-ioctl.c
[PATCH] dm: ioctl: add noflush suspend
2006-12-08 08:29:09 -08:00
dm-linear.c
[PATCH] dm: map and endio symbolic return codes
2006-12-08 08:29:09 -08:00
dm-log.c
[PATCH] dm: raid1: reset sync_search on resume
2006-12-08 08:29:09 -08:00
dm-log.h
[PATCH] dm: log: rename complete_resync_work
2006-12-08 08:29:09 -08:00
dm-mpath.c
[PATCH] dm: mpath: use noflush suspending
2006-12-08 08:29:09 -08:00
dm-mpath.h
[PATCH] struct path: rename DM's struct path
2006-12-08 08:28:40 -08:00
dm-path-selector.c
dm-path-selector.h
[PATCH] struct path: rename DM's struct path
2006-12-08 08:28:40 -08:00
dm-raid1.c
[PATCH] dm: log: rename complete_resync_work
2006-12-08 08:29:09 -08:00
dm-round-robin.c
[PATCH] struct path: rename DM's struct path
2006-12-08 08:28:40 -08:00
dm-snap.c
[PATCH] make drivers/md/dm-snap.c:ksnapd static
2006-12-08 08:29:09 -08:00
dm-snap.h
dm-stripe.c
[PATCH] dm: map and endio symbolic return codes
2006-12-08 08:29:09 -08:00
dm-table.c
dm-target.c
dm-zero.c
[PATCH] dm: map and endio symbolic return codes
2006-12-08 08:29:09 -08:00
dm.c
[PATCH] dm-multipath: fix stall on noflush suspend/resume
2007-01-26 13:51:00 -08:00
dm.h
[PATCH] dm: suspend: add noflush pushback
2006-12-08 08:29:09 -08:00
faulty.c
[PATCH] md: Don't assume that READ==0 and WRITE==1 - use the names explicitly
2006-12-13 09:05:48 -08:00
Kconfig
[CRYPTO] dm-crypt: Select CRYPTO_CBC
2006-12-10 10:18:57 -08:00
kcopyd.c
kcopyd.h
linear.c
Makefile
md.c
[PATCH] md: fix potential memalloc deadlock in md
2007-01-26 13:51:00 -08:00
mktables.c
multipath.c
raid0.c
raid1.c
[PATCH] md: fix potential memalloc deadlock in md
2007-01-26 13:51:00 -08:00
raid5.c
[PATCH] md: fix potential memalloc deadlock in md
2007-01-26 13:51:00 -08:00
raid6.h
raid6algos.c
raid6altivec.uc
raid6int.uc
raid6mmx.c
raid6recov.c
raid6sse1.c
raid6sse2.c
raid6x86.h
raid10.c
[PATCH] md: pass down BIO_RW_SYNC in raid{1,10}
2007-01-11 18:18:21 -08:00
unroll.pl
xor.c