md: use new plugging interface for RAID IO.
[deliverable/linux.git] / drivers / md / raid1.c
index c2a21ae56d977d6249f9c8501f124e50c48f15dd..5449cd5e31413bd70ddcbdb8c617b052a51a3d78 100644 (file)
@@ -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);
 }
 
 
This page took 0.025487 seconds and 5 git commands to generate.