aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.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/raid1.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/raid1.c')
-rw-r--r--drivers/md/raid1.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index c2a21ae56d97..5449cd5e3141 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -1516,9 +1516,11 @@ static void raid1d(mddev_t *mddev)
1516 conf_t *conf = mddev->private; 1516 conf_t *conf = mddev->private;
1517 struct list_head *head = &conf->retry_list; 1517 struct list_head *head = &conf->retry_list;
1518 mdk_rdev_t *rdev; 1518 mdk_rdev_t *rdev;
1519 struct blk_plug plug;
1519 1520
1520 md_check_recovery(mddev); 1521 md_check_recovery(mddev);
1521 1522
1523 blk_start_plug(&plug);
1522 for (;;) { 1524 for (;;) {
1523 char b[BDEVNAME_SIZE]; 1525 char b[BDEVNAME_SIZE];
1524 1526
@@ -1593,6 +1595,7 @@ static void raid1d(mddev_t *mddev)
1593 } 1595 }
1594 cond_resched(); 1596 cond_resched();
1595 } 1597 }
1598 blk_finish_plug(&plug);
1596} 1599}
1597 1600
1598 1601