]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] md: improve raid1 "IO Barrier" concept
authorNeilBrown <neilb@suse.de>
Fri, 6 Jan 2006 08:20:12 +0000 (00:20 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:34:01 +0000 (08:34 -0800)
commit7f2f2860566a166d868beb33a4c1bb33853030f8
tree14f9fd4ef0299f16274ce2980baef7b96f111bea
parent6b5621be9030cb6fd8d1c3dce39f909d37bb8973
[PATCH] md: improve raid1 "IO Barrier" concept

raid1 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/raid1.c
include/linux/raid/raid1.h