]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commite464eafdb4400c6d6576ba3840d8bd40340f8a96
tree0c3f4003c883264ee08300c02007f06e4d1ebb91
parent16484bf59634e25d1299761e5ed8bacf22bc6368
[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