diff options
| author | Shawn Lin <[email protected]> | 2018-05-17 07:47:42 +0000 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2018-05-21 13:49:18 +0000 |
| commit | 65f9e20e0d34902e442818760217501f05d17b6c (patch) | |
| tree | 759140e0b237b3b17d737a0e9d12380ff9e9ffbc /drivers/fpga/fpga-bridge.c | |
| parent | mmc: meson-gx: add device reset (diff) | |
| download | kernel-65f9e20e0d34902e442818760217501f05d17b6c.tar.gz kernel-65f9e20e0d34902e442818760217501f05d17b6c.zip | |
mmc: block: Don't switch to the same partition type in mmc_blk_remove()
It's pointless to switch and trace partition type if the current
selected device partition is the same with that one. Moreover, cycled
claiming host associated with mmc_blk_part_switch() could make
mmc_blk_remove() end up waiting for grabbing the context if it's
occupied, which lead requests could still hit the low-level drivers,
if an asynchronous unbind for host drivers happened, as the card hasn't
been set removed in the remove path.
So a simple dd in background:
dd if=/dev/mmcblk0 of=/dev/null bs=512k count=100000 &
and doing unbind then:
echo fe320000.dwmmc > /sys/bus/platform/drivers/dwmmc_rockchip/unbind
could make the console stuck for quite a while depending on the
numbers of requests.
Suggested-by: Adrian Hunter <[email protected]>
Signed-off-by: Shawn Lin <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions
