projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d3a6a2
)
mmc: remove the call to check_disk_change
author
Christoph Hellwig
<hch@lst.de>
Wed, 8 Jul 2020 12:25:46 +0000
(14:25 +0200)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 8 Jul 2020 22:20:01 +0000
(16:20 -0600)
The mmc driver doesn't support event notifications, which means
that check_disk_change is a no-op.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/mmc/core/block.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/core/block.c
b/drivers/mmc/core/block.c
index 4791c82f8f7c78768b047199158d987e9aff9169..fa313b63413547fc664b317c56ec2c0a8d12bbce 100644
(file)
--- 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;