md: ensure all blocks are uptodate or locked when syncing
authorDan Williams <dan.j.williams@intel.com>
Thu, 10 Jul 2008 18:15:04 +0000 (18:15 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 24 Jul 2008 16:14:07 +0000 (09:14 -0700)
commitfc46a59f78a80dc3957a00badaca2737ddf7fbfd
tree4582a36a1427e7b6e911239727332bae97339d4a
parentba9ecf2c7d4c64b3118260f5a056337e41a2612c
md: ensure all blocks are uptodate or locked when syncing

commit 7a1fc53c5adb910751a9b212af90302eb4ffb527 upstream

Remove the dubious attempt to prefer 'compute' over 'read'.  Not only is it
wrong given commit c337869d (md: do not compute parity unless it is on a failed
drive), but it can trigger a BUG_ON in handle_parity_checks5().

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/raid5.c