]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] md: define ->congested_fn for raid1, raid10, and multipath
authorNeilBrown <neilb@suse.de>
Tue, 3 Oct 2006 08:15:54 +0000 (01:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 3 Oct 2006 15:04:18 +0000 (08:04 -0700)
commit0d12922823408b26f83b15cae4a4feff4bd22f28
treea3509f442e6fc75ca9304757ffa3dce4918ef55e
parent26be34dc3a46be983352dd89683db374b0cb73fa
[PATCH] md: define ->congested_fn for raid1, raid10, and multipath

raid1, raid10 and multipath don't report their 'congested' status through
bdi_*_congested, but should.

This patch adds the appropriate functions which just check the 'congested'
status of all active members (with appropriate locking).

raid1 read_balance should be modified to prefer devices where
bdi_read_congested returns false.  Then we could use the '&' branch rather
than the '|' branch.  However that should would need some benchmarking first
to make sure it is actually a good idea.

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/multipath.c
drivers/md/raid1.c
drivers/md/raid10.c