summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-09-08 16:53:43 +0200
committerJens Axboe <axboe@kernel.dk>2020-09-10 17:32:31 +0200
commit818077d6e0125b4a7b728457b60b5d89e02a0ce1 (patch)
tree5336ff1b5fb3f468bd5d3e289d1a7fde65080bb1
parentide-gd: stop using the disk events mechanism (diff)
downloadlinux-818077d6e0125b4a7b728457b60b5d89e02a0ce1.tar.xz
linux-818077d6e0125b4a7b728457b60b5d89e02a0ce1.zip
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>
-rw-r--r--drivers/md/md.c2
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);