diff options
author | Dan Williams <dan.j.williams@intel.com> | 2008-06-28 08:32:03 +1000 |
---|---|---|
committer | Neil Brown <neilb@notabene.brown> | 2008-06-28 08:32:03 +1000 |
commit | 976ea8d475675da6e86bd434328814ccbf5ae641 (patch) | |
tree | 087b3c8a44b6cfce0ff085faab0bc66871c455fb /lib/locking-selftest.c | |
parent | 83de75cc92be599850e5ef3928e07cd840833499 (diff) | |
download | kernel_samsung_aries-976ea8d475675da6e86bd434328814ccbf5ae641.zip kernel_samsung_aries-976ea8d475675da6e86bd434328814ccbf5ae641.tar.gz kernel_samsung_aries-976ea8d475675da6e86bd434328814ccbf5ae641.tar.bz2 |
md: replace STRIPE_OP_COMPUTE_BLK with STRIPE_COMPUTE_RUN
From: Dan Williams <dan.j.williams@intel.com>
Track the state of compute operations (recalculating a block from all the other
blocks in a stripe) with a state flag. Reduces the scope of the
STRIPE_OP_COMPUTE_BLK flag to only tracking whether a compute operation has
been requested via the ops_request field of struct stripe_head_state.
Note, the compute operation that is performed in the course of doing a 'repair'
operation (check the parity block, recalculate it and write it back if the
check result is not zero) is tracked separately with the 'check_state'
variable. Compute operations are held off while a 'check' is in progress, and
moving this check out to handle_issuing_new_read_requests5 the helper routine
__handle_issuing_new_read_requests5 can be simplified.
This is another step towards the removal of ops.{pending,ack,complete,count},
i.e. STRIPE_OP_COMPUTE_BLK only requests an operation and does not track the
state of the operation.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'lib/locking-selftest.c')
0 files changed, 0 insertions, 0 deletions