aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/raid/raid10.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2006-01-06 03:20:13 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-06 11:34:02 -0500
commit0a27ec96b6fb1abf867e36d7b0b681d67588767a (patch)
tree4db5d9b8ef02b417fc2077d65311e2ea7cda5ce0 /include/linux/raid/raid10.h
parent17999be4aa408e7ff3b9d32c735649676567a3cd (diff)
[PATCH] md: improve raid10 "IO Barrier" concept
raid10 needs to put up a barrier to new requests while it does resync or other background recovery. The code for this is currently open-coded, slighty obscure by its use of two waitqueues, and not documented. This patch gathers all the related code into 4 functions, and includes a comment which (hopefully) explains what is happening. Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/raid/raid10.h')
-rw-r--r--include/linux/raid/raid10.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/raid/raid10.h b/include/linux/raid/raid10.h
index 60708789c8f9..08317b77802b 100644
--- a/include/linux/raid/raid10.h
+++ b/include/linux/raid/raid10.h
@@ -39,11 +39,11 @@ struct r10_private_data_s {
39 39
40 spinlock_t resync_lock; 40 spinlock_t resync_lock;
41 int nr_pending; 41 int nr_pending;
42 int nr_waiting;
42 int barrier; 43 int barrier;
43 sector_t next_resync; 44 sector_t next_resync;
44 45
45 wait_queue_head_t wait_idle; 46 wait_queue_head_t wait_barrier;
46 wait_queue_head_t wait_resume;
47 47
48 mempool_t *r10bio_pool; 48 mempool_t *r10bio_pool;
49 mempool_t *r10buf_pool; 49 mempool_t *r10buf_pool;