diff options
author | Christoph Hellwig <hch@lst.de> | 2020-09-08 17:53:43 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-09-10 18:32:31 +0300 |
commit | 818077d6e0125b4a7b728457b60b5d89e02a0ce1 (patch) | |
tree | 5336ff1b5fb3f468bd5d3e289d1a7fde65080bb1 /drivers/md/md.c | |
parent | fec2cf607ba9305770436b1e5c485963a9f0a7bd (diff) | |
download | linux-818077d6e0125b4a7b728457b60b5d89e02a0ce1.tar.xz |
md: use bdev_check_media_change
The md driver does not have a ->revalidate_disk method, so it can just
use bdev_check_media_change without any additional changes.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 9562ef598ae1..27ed61197014 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -7848,7 +7848,7 @@ static int md_open(struct block_device *bdev, fmode_t mode) atomic_inc(&mddev->openers); mutex_unlock(&mddev->open_mutex); - check_disk_change(bdev); + bdev_check_media_change(bdev); out: if (err) mddev_put(mddev); |