From: NeilBrown Date: Tue, 3 Oct 2006 08:15:54 +0000 (-0700) Subject: [PATCH] md: define ->congested_fn for raid1, raid10, and multipath X-Git-Tag: v2.6.19-rc1~241 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d12922823408b26f83b15cae4a4feff4bd22f28;p=pandora-kernel.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed