]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit01e5c57bbff6973332a5bca94145a7be56704665
treee1be4e404f7a60002ed447cf017f90c3e23b4565
parent641a8c129fd5797807277ad6300c974c7aff76f4
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