aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-plat.c
diff options
context:
space:
mode:
authorChris Chiu <[email protected]>2021-03-23 08:52:19 +0000
committerJens Axboe <[email protected]>2021-03-23 15:58:34 +0000
commit5116784039f0421e9a619023cfba3e302c3d9adc (patch)
treeadbe028ad8d1e7a3d08569cbb2c0eee781553e93 /drivers/usb/cdns3/cdns3-plat.c
parentMerge tag 'nvme-5.12-20210319' of git://git.infradead.org/nvme into block-5.12 (diff)
downloadkernel-5116784039f0421e9a619023cfba3e302c3d9adc.tar.gz
kernel-5116784039f0421e9a619023cfba3e302c3d9adc.zip
block: clear GD_NEED_PART_SCAN later in bdev_disk_changed
The GD_NEED_PART_SCAN is set by bdev_check_media_change to initiate a partition scan while removing a block device. It should be cleared after blk_drop_paritions because blk_drop_paritions could return -EBUSY and then the consequence __blkdev_get has no chance to do delete_partition if GD_NEED_PART_SCAN already cleared. It causes some problems on some card readers. Ex. Realtek card reader 0bda:0328 and 0bda:0158. The device node of the partition will not disappear after the memory card removed. Thus the user applications can not update the device mapping correctly. BugLink: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1920874 Signed-off-by: Chris Chiu <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-plat.c')
0 files changed, 0 insertions, 0 deletions