aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 3db5c3513072..3fb80397f8aa 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -1582,6 +1582,7 @@ static mdk_rdev_t *md_import_device(dev_t newdev, int super_format, int super_mi
1582 rdev->in_sync = 0; 1582 rdev->in_sync = 0;
1583 rdev->data_offset = 0; 1583 rdev->data_offset = 0;
1584 atomic_set(&rdev->nr_pending, 0); 1584 atomic_set(&rdev->nr_pending, 0);
1585 atomic_set(&rdev->read_errors, 0);
1585 1586
1586 size = rdev->bdev->bd_inode->i_size >> BLOCK_SIZE_BITS; 1587 size = rdev->bdev->bd_inode->i_size >> BLOCK_SIZE_BITS;
1587 if (!size) { 1588 if (!size) {