From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Hansson Subject: Re: [PATCH 6/6] mmc: remove the call to check_disk_change Date: Fri, 10 Jul 2020 09:28:47 +0200 Message-ID: References: <20200708122546.214579-1-hch@lst.de> <20200708122546.214579-7-hch@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: <20200708122546.214579-7-hch@lst.de> Sender: linux-block-owner@vger.kernel.org To: Christoph Hellwig Cc: Jens Axboe , Song Liu , Linux Kernel Mailing List , linux-xtensa@linux-xtensa.org, linux-block , linux-raid@vger.kernel.org, "linux-mmc@vger.kernel.org" , linux-fsdevel@vger.kernel.org List-Id: linux-raid.ids On Wed, 8 Jul 2020 at 14:41, Christoph Hellwig wrote: > > The mmc driver doesn't support event notifications, which means > that check_disk_change is a no-op. > > Signed-off-by: Christoph Hellwig Feel free to add: Acked-by: Ulf Hansson 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 >