NeilBrown 1c830532f6 md: fix possible raid1/raid10 deadlock on read error during resync
Thanks to K.Tanaka and the scsi fault injection framework, here is a fix for
another possible deadlock in raid1/raid10 error handing.

If a read request returns an error while a resync is happening and a resync
request is pending, the attempt to fix the error will block until the resync
progresses, and the resync will block until the read request completes.  Thus
a deadlock.

This patch fixes the problem.

Cc: "K.Tanaka" <k-tanaka@ce.jp.nec.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-03-04 16:35:18 -08:00
..
2006-01-01 22:21:50 +01:00
2007-10-20 02:01:11 +01:00
2005-04-16 15:20:36 -07:00
2008-02-08 02:11:14 +00:00
2007-10-20 02:01:11 +01:00
2007-10-20 02:01:12 +01:00
2007-10-20 02:01:07 +01:00
2007-10-20 02:01:18 +01:00
2007-05-09 12:30:47 -07:00
2008-02-08 02:10:16 +00:00
2008-02-08 02:11:19 +00:00
2007-10-20 02:01:21 +01:00
2007-10-20 02:00:57 +01:00
2008-02-08 02:10:35 +00:00
2007-10-20 02:01:07 +01:00
2008-02-19 15:52:27 -08:00
2008-02-08 02:11:24 +00:00
2008-02-14 21:13:33 -08:00
2007-10-20 02:01:07 +01:00
2007-10-20 02:01:26 +01:00
2007-10-20 02:01:26 +01:00
2007-12-20 17:32:11 +00:00
2008-02-08 02:10:32 +00:00
2007-10-20 02:01:08 +01:00
2005-04-16 15:20:36 -07:00
2007-10-20 02:01:24 +01:00
2008-02-06 10:41:18 -08:00
2005-09-17 11:49:58 -07:00
2007-10-29 07:41:32 -07:00
2005-09-17 11:49:58 -07:00
2005-04-16 15:20:36 -07:00
2007-10-29 07:41:32 -07:00
2005-04-16 15:20:36 -07:00
2007-10-29 07:41:32 -07:00
2007-10-29 07:41:32 -07:00
2007-10-29 07:41:32 -07:00
2005-04-16 15:20:36 -07:00