md/raid5: move resolving of reconstruct_state earlier in
authorNeilBrown <neilb@suse.de>
Wed, 21 Nov 2012 22:13:36 +0000 (09:13 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 21 Nov 2012 22:14:09 +0000 (09:14 +1100)
commitef5b7c69b7a1b8b8744a6168b6ff02900f81b6ca
treee1be4e404f7a60002ed447cf017f90c3e23b4565
parent4ac6875eeb97a49bad7bc8d56b5ec935904fc6e7
md/raid5: move resolving of reconstruct_state earlier in
stripe_handle.

The chunk of code in stripe_handle which responds to a
*_result value in reconstruct_state is really the completion
of some processing that happened outside of handle_stripe
(possibly asynchronously) and so should be one of the first
things done in handle_stripe().

After the next patch it will be important that it happens before
handle_stripe_clean_event(), as that will clear some dev->flags
bit that this code tests.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c