diff options
author | NeilBrown <neilb@suse.de> | 2011-04-18 18:25:41 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-04-18 18:25:41 +1000 |
commit | e1dfa0a29737142c32f00a3bac0f609dc85b4a82 (patch) | |
tree | 1af906cc5e959803e7d5ea0e56fb69b56754501a /drivers/md/raid1.c | |
parent | 99e22598e9a8e0a996d69c8c0f6b7027cb57720a (diff) | |
download | op-kernel-dev-e1dfa0a29737142c32f00a3bac0f609dc85b4a82.zip op-kernel-dev-e1dfa0a29737142c32f00a3bac0f609dc85b4a82.tar.gz |
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.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index c2a21ae5..5449cd5 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -1516,9 +1516,11 @@ static void raid1d(mddev_t *mddev) conf_t *conf = mddev->private; struct list_head *head = &conf->retry_list; mdk_rdev_t *rdev; + struct blk_plug plug; md_check_recovery(mddev); - + + blk_start_plug(&plug); for (;;) { char b[BDEVNAME_SIZE]; @@ -1593,6 +1595,7 @@ static void raid1d(mddev_t *mddev) } cond_resched(); } + blk_finish_plug(&plug); } |