]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/md/faulty.c
md/raid5: fix a race condition in stripe batch
[mirror_ubuntu-artful-kernel.git] / drivers / md / faulty.c
index b0536cfd8e174b83a53d49391552b0c7ec64aef8..06a64d5d8c6c4831be50daf4e93bff7a55ce2dd4 100644 (file)
@@ -170,7 +170,7 @@ static void add_sector(struct faulty_conf *conf, sector_t start, int mode)
                conf->nfaults = n+1;
 }
 
-static void faulty_make_request(struct mddev *mddev, struct bio *bio)
+static bool faulty_make_request(struct mddev *mddev, struct bio *bio)
 {
        struct faulty_conf *conf = mddev->private;
        int failit = 0;
@@ -182,7 +182,7 @@ static void faulty_make_request(struct mddev *mddev, struct bio *bio)
                         * just fail immediately
                         */
                        bio_io_error(bio);
-                       return;
+                       return true;
                }
 
                if (check_sector(conf, bio->bi_iter.bi_sector,
@@ -224,6 +224,7 @@ static void faulty_make_request(struct mddev *mddev, struct bio *bio)
                bio->bi_bdev = conf->rdev->bdev;
 
        generic_make_request(bio);
+       return true;
 }
 
 static void faulty_status(struct seq_file *seq, struct mddev *mddev)