]> www.infradead.org Git - users/hch/block.git/commitdiff
mmc: remove the call to check_disk_change block-remove-media_changed
authorChristoph Hellwig <hch@lst.de>
Wed, 27 Nov 2019 13:38:30 +0000 (14:38 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 2 Jul 2020 09:03:26 +0000 (11:03 +0200)
The mmc driver doesn't support even notifications, which means
that check_disk_change is a no-op.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/mmc/core/block.c

index 4791c82f8f7c78768b047199158d987e9aff9169..fa313b63413547fc664b317c56ec2c0a8d12bbce 100644 (file)
@@ -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;