]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] md: Support suspending of IO to regions of an md array
authorNeilBrown <neilb@suse.de>
Mon, 27 Mar 2006 09:18:14 +0000 (01:18 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 27 Mar 2006 16:45:02 +0000 (08:45 -0800)
commit7c9be26c2f762a086a983a5da8335b414832beb2
tree0c3f4003c883264ee08300c02007f06e4d1ebb91
parent52ac2d41af47038e136bb6f6b44f5f28234b6d35
[PATCH] md: Support suspending of IO to regions of an md array

This allows user-space to access data safely.  This is needed for raid5
reshape as user-space needs to take a backup of the first few stripes before
allowing reshape to commence.

It will also be useful in cluster-aware raid1 configurations so that all
cluster members can leave a section of the array untouched while a
resync/recovery happens.

A 'start' and 'end' of the suspended range are written to 2 sysfs attributes.
Note that only one range can be suspended at a time.

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/md.c
drivers/md/raid5.c
include/linux/raid/md_k.h