md: use new plugging interface for RAID IO.
[deliverable/linux.git] / drivers / md / raid10.c
index 2da83d5665925eea27b441e954ca145569278055..c8e5dac5d6952da799a4b12fbd408cb8c79474c0 100644 (file)
@@ -1640,9 +1640,11 @@ static void raid10d(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];
 
@@ -1716,6 +1718,7 @@ static void raid10d(mddev_t *mddev)
                }
                cond_resched();
        }
+       blk_finish_plug(&plug);
 }
 
 
This page took 0.03364 seconds and 5 git commands to generate.