[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPDyKFqgHXAmc1k3BTpfUOW_iDWtyqWEcy3vRfZ3Lv3WaJwnBQ@mail.gmail.com>
Date: Fri, 10 Jul 2020 09:28:47 +0200
From: Ulf Hansson <ulf.hansson@...aro.org>
To: Christoph Hellwig <hch@....de>
Cc: Jens Axboe <axboe@...nel.dk>, Song Liu <song@...nel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-xtensa@...ux-xtensa.org,
linux-block <linux-block@...r.kernel.org>,
linux-raid@...r.kernel.org,
"linux-mmc@...r.kernel.org" <linux-mmc@...r.kernel.org>,
linux-fsdevel@...r.kernel.org
Subject: Re: [PATCH 6/6] mmc: remove the call to check_disk_change
On Wed, 8 Jul 2020 at 14:41, Christoph Hellwig <hch@....de> wrote:
>
> The mmc driver doesn't support event notifications, which means
> that check_disk_change is a no-op.
>
> Signed-off-by: Christoph Hellwig <hch@....de>
Feel free to add:
Acked-by: Ulf Hansson <ulf.hansson@...aro.org>
Kind regards
Uffe
> ---
> drivers/mmc/core/block.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c
> index 4791c82f8f7c78..fa313b63413547 100644
> --- a/drivers/mmc/core/block.c
> +++ b/drivers/mmc/core/block.c
> @@ -312,10 +312,7 @@ static int mmc_blk_open(struct block_device *bdev, fmode_t mode)
>
> mutex_lock(&block_mutex);
> if (md) {
> - if (md->usage == 2)
> - check_disk_change(bdev);
> ret = 0;
> -
> if ((mode & FMODE_WRITE) && md->read_only) {
> mmc_blk_put(md);
> ret = -EROFS;
> --
> 2.26.2
>
Powered by blists - more mailing lists