2020-09-02 14:28:19

by Christoph Hellwig

[permalink] [raw]
Subject: [PATCH 15/19] md: use bdev_check_media_change

The pcd 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 <[email protected]>
---
drivers/md/md.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/md/md.c b/drivers/md/md.c
index 9562ef598ae1f4..27ed61197014ef 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);
--
2.28.0


2020-09-02 15:53:55

by Johannes Thumshirn

[permalink] [raw]
Subject: Re: [PATCH 15/19] md: use bdev_check_media_change

On 02/09/2020 16:16, Christoph Hellwig wrote:
> The pcd driver does not have a ->revalidate_disk method, so it can just
md ~^

Otherwise looks good,
Reviewed-by: Johannes Thumshirn <[email protected]>

2020-09-02 16:18:09

by Sergei Shtylyov

[permalink] [raw]
Subject: Re: [PATCH 15/19] md: use bdev_check_media_change

Hello!

On 9/2/20 5:12 PM, Christoph Hellwig wrote:

> The pcd driver does not have a ->revalidate_disk method, so it can just

s/pcd/md/?

> use bdev_check_media_change without any additional changes.
>
> Signed-off-by: Christoph Hellwig <[email protected]>
> ---
> drivers/md/md.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
[...]

MBR, Sergei