aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid10.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-04-18 04:25:41 -0400
committerNeilBrown <neilb@suse.de>2011-04-18 04:25:41 -0400
commite1dfa0a29737142c32f00a3bac0f609dc85b4a82 (patch)
tree1af906cc5e959803e7d5ea0e56fb69b56754501a /drivers/md/raid10.c
parent99e22598e9a8e0a996d69c8c0f6b7027cb57720a (diff)
md: use new plugging interface for RAID IO.
md/raid submits a lot of IO from the various raid threads. So adding start/finish plug calls to those so that some plugging happens. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r--drivers/md/raid10.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index 2da83d566592..c8e5dac5d695 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -1640,9 +1640,11 @@ static void raid10d(mddev_t *mddev)
1640 conf_t *conf = mddev->private; 1640 conf_t *conf = mddev->private;
1641 struct list_head *head = &conf->retry_list; 1641 struct list_head *head = &conf->retry_list;
1642 mdk_rdev_t *rdev; 1642 mdk_rdev_t *rdev;
1643 struct blk_plug plug;
1643 1644
1644 md_check_recovery(mddev); 1645 md_check_recovery(mddev);
1645 1646
1647 blk_start_plug(&plug);
1646 for (;;) { 1648 for (;;) {
1647 char b[BDEVNAME_SIZE]; 1649 char b[BDEVNAME_SIZE];
1648 1650
@@ -1716,6 +1718,7 @@ static void raid10d(mddev_t *mddev)
1716 } 1718 }
1717 cond_resched(); 1719 cond_resched();
1718 } 1720 }
1721 blk_finish_plug(&plug);
1719} 1722}
1720 1723
1721 1724