md: replace R5_WantPrexor with R5_WantDrain, add 'prexor' reconstruct_states
authorDan Williams <dan.j.williams@intel.com>
Fri, 27 Jun 2008 22:32:06 +0000 (08:32 +1000)
committerNeil Brown <neilb@notabene.brown>
Fri, 27 Jun 2008 22:32:06 +0000 (08:32 +1000)
commitd8ee0728b5b30d7a6f62c399a95e953616d31f23
tree7f9fcf2b0f6222b2a2b8ee44d69af1fd6990064d
parent600aa10993012ff2dd5617720dac081e4f992017
md: replace R5_WantPrexor with R5_WantDrain, add 'prexor' reconstruct_states

From: Dan Williams <dan.j.williams@intel.com>

Currently ops_run_biodrain and other locations have extra logic to determine
which blocks are processed in the prexor and non-prexor cases.  This can be
eliminated if handle_write_operations5 flags the blocks to be processed in all
cases via R5_Wantdrain.  The presence of the prexor operation is tracked in
sh->reconstruct_state.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Neil Brown <neilb@suse.de>
drivers/md/raid5.c
include/linux/raid/raid5.h