]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] md: improve raid10 "IO Barrier" concept
authorNeilBrown <neilb@suse.de>
Fri, 6 Jan 2006 08:20:13 +0000 (00:20 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:34:02 +0000 (08:34 -0800)
commit0a27ec96b6fb1abf867e36d7b0b681d67588767a
tree4db5d9b8ef02b417fc2077d65311e2ea7cda5ce0
parent17999be4aa408e7ff3b9d32c735649676567a3cd
[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>
drivers/md/raid10.c
include/linux/raid/raid10.h