summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid10.h
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2012-07-31 10:03:53 +1000
committerNeilBrown <neilb@suse.de>2012-07-31 10:03:53 +1000
commitcc4d1efdd017083bbcbaf23feb4cdc717fa7dab8 (patch)
treea6a7775a4715ab009c00ec4ef7655eafc307b694 /drivers/md/raid10.h
parent473e87ce485ffcac041f7911b33f0b4cd4d6cf2b (diff)
downloadlinux-cc4d1efdd017083bbcbaf23feb4cdc717fa7dab8.tar.gz
linux-cc4d1efdd017083bbcbaf23feb4cdc717fa7dab8.tar.bz2
linux-cc4d1efdd017083bbcbaf23feb4cdc717fa7dab8.zip
MD RAID10: Export md_raid10_congested
md/raid10: Export is_congested test. In similar fashion to commits 11d8a6e3719519fbc0e2c9d61b6fa931b84bf813 1ed7242e591af7e233234d483f12d33818b189d9 we export the RAID10 congestion checking function so that dm-raid.c can make use of it and make use of the personality. The 'queue' and 'gendisk' structures will not be available to the MD code when device-mapper sets up the device, so we conditionalize access to these fields also. Signed-off-by: Jonathan Brassow <jbrassow@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid10.h')
-rw-r--r--drivers/md/raid10.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/raid10.h b/drivers/md/raid10.h
index b0a435869dca..007c2c68dd83 100644
--- a/drivers/md/raid10.h
+++ b/drivers/md/raid10.h
@@ -145,4 +145,7 @@ enum r10bio_state {
*/
R10BIO_Previous,
};
+
+extern int md_raid10_congested(struct mddev *mddev, int bits);
+
#endif