From: NeilBrown <neilb@suse.de>
Subject: md/raid10: Don't print RAID10 conf messages for large arrays.
Patch-mainline: no
References: bnc#768084

For small arrays, the "RAID10 conf printout" messages can be useful.
For large arrays they are just annoying and slow things down.
So discard them for arrays with 16 or more devices.

Signed-off-by: Neil Brown <neilb@suse.de>

---
 drivers/md/raid10.c |    4 ++++
 1 file changed, 4 insertions(+)

--- linux-3.0-SLE11-SP2-BTMU.orig/drivers/md/raid10.c
+++ linux-3.0-SLE11-SP2-BTMU/drivers/md/raid10.c
@@ -1248,6 +1248,10 @@ static void print_conf(conf_t *conf)
 	int i;
 	mirror_info_t *tmp;
 
+	if (conf && conf->geo.raid_disks >= 16)
+		/* Too many disks, too noisy */
+		return;
+
 	printk(KERN_DEBUG "RAID10 conf printout:\n");
 	if (!conf) {
 		printk(KERN_DEBUG "(!conf)\n");
