[PATCH] md: Restore 'remaining' count when retrying an write operation
commit2f889129de148b0ba2e1fbc9e9d33a4ef4c5f2cb
authorNeilBrown <neilb@suse.de>
Mon, 27 Mar 2006 09:18:19 +0000 (27 01:18 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 27 Mar 2006 16:45:03 +0000 (27 08:45 -0800)
tree78d9d9ceb070d92eb8c53cf6d683526e2447d7bc
parent8ddeeae51f2f197b4fafcba117ee8191b49d843e
[PATCH] md: Restore 'remaining' count when retrying an write operation

When retrying a write due to barrier failure, we don't reset 'remaining', so
it goes negative and never hits 0 again.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/raid1.c