]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] md: define backing_dev_info.congested_fn for raid0 and linear
authorNeilBrown <neilb@suse.de>
Tue, 3 Oct 2006 08:15:53 +0000 (01:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 3 Oct 2006 15:04:18 +0000 (08:04 -0700)
commit8119a37ae0f9b1980ecd9b4c0b7298e84e62c804
tree296ed9d019ac56d4a6ea0909f1cf11bdfd08a3e5
parente46e32694beb3eda7ddc5ef04ecbfd9471443587
[PATCH] md: define backing_dev_info.congested_fn for raid0 and linear

Each backing_dev needs to be able to report whether it is congested, either by
modulating BDI_*_congested in ->state, or by defining a ->congested_fn.
md/raid did neither of these.  This patch add a congested_fn which simply
checks all component devices to see if they are congested.

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/linear.c
drivers/md/raid0.c