aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/raid/raid5.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2007-01-02 15:52:31 -0500
committerDan Williams <dan.j.williams@intel.com>2007-07-13 11:06:17 -0400
commitb5e98d65d34a1c11a2135ea8a9b2619dbc7216c8 (patch)
treebf88aad375bb0cbf6c346ec912c06c2607850b21 /include/linux/raid/raid5.h
parente89f89629b5de76e504d1be75c82c4a6b2419583 (diff)
md: handle_stripe5 - add request/completion logic for async read ops
When a read bio is attached to the stripe and the corresponding block is marked R5_UPTODATE, then a read (biofill) operation is scheduled to copy the data from the stripe cache to the bio buffer. handle_stripe flags the blocks to be operated on with the R5_Wantfill flag. If new read requests arrive while raid5_run_ops is running they will not be handled until handle_stripe is scheduled to run again. Changelog: * cleanup to_read and to_fill accounting * do not fail reads that have reached the cache Signed-off-by: Dan Williams <dan.j.williams@intel.com> Acked-By: NeilBrown <neilb@suse.de>
Diffstat (limited to 'include/linux/raid/raid5.h')
-rw-r--r--include/linux/raid/raid5.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/raid/raid5.h b/include/linux/raid/raid5.h
index 2293015de1d5..93678f57ccbe 100644
--- a/include/linux/raid/raid5.h
+++ b/include/linux/raid/raid5.h
@@ -200,7 +200,7 @@ struct stripe_head {
200struct stripe_head_state { 200struct stripe_head_state {
201 int syncing, expanding, expanded; 201 int syncing, expanding, expanded;
202 int locked, uptodate, to_read, to_write, failed, written; 202 int locked, uptodate, to_read, to_write, failed, written;
203 int compute, req_compute, non_overwrite; 203 int to_fill, compute, req_compute, non_overwrite;
204 int failed_num; 204 int failed_num;
205}; 205};
206 206