]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/md/raid10.c
md/raid10: decrement correct pending counter when writing to replacement.
[~shefty/rdma-dev.git] / drivers / md / raid10.c
index ad032518fdc00981b344dc5c1c98880defd79095..0d5d0ff2c0f7beb47a02bd4692273b31369b2bc5 100644 (file)
@@ -499,7 +499,7 @@ static void raid10_end_write_request(struct bio *bio, int error)
         */
        one_write_done(r10_bio);
        if (dec_rdev)
-               rdev_dec_pending(conf->mirrors[dev].rdev, conf->mddev);
+               rdev_dec_pending(rdev, conf->mddev);
 }
 
 /*