Files
linux-st/include/linux
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
..
2007-01-15 06:44:03 +01:00
2007-01-04 12:18:19 -05:00
2006-12-19 11:12:46 +01:00
2006-12-30 10:56:43 -08:00
2006-12-11 14:35:00 -08:00
2007-01-08 19:49:54 +00:00
2006-12-10 21:21:29 +01:00
2006-12-10 21:21:31 +01:00
2006-12-12 10:22:23 +01:00
2006-12-20 10:54:43 -08:00
2007-01-24 02:04:34 -05:00
2007-01-05 23:55:21 -08:00
2007-01-26 13:50:58 -08:00
2007-01-11 18:18:20 -08:00
2006-12-13 09:05:50 -08:00
2007-01-23 00:34:54 -05:00
2007-01-11 18:18:21 -08:00
2006-12-22 08:55:49 -08:00
2006-12-12 08:10:44 -08:00
2006-12-13 09:05:49 -08:00
2006-12-12 19:23:02 +01:00
2006-12-15 08:47:51 -08:00