From: NeilBrown Date: Fri, 6 Jan 2006 08:20:37 +0000 (-0800) Subject: [PATCH] md: fix possible problem in raid1/raid10 error overwriting X-Git-Tag: v2.6.16-rc1~936^2~24 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=097426f689f179747f3cd6b4749eb2a6b605702d;p=pandora-kernel.git [PATCH] md: fix possible problem in raid1/raid10 error overwriting The code to overwrite/reread for addressing read errors in raid1/raid10 currently assumes that the read will not alter the buffer which could be used to write to the next device. This is not a safe assumption to make. So we split the loops into a overwrite loop and a separate re-read loop, so that the writing is complete before reading is attempted. Cc: Paul Clements Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed