diff options
| author | Christoph Hellwig <[email protected]> | 2020-03-18 09:12:06 +0100 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2020-03-18 08:47:04 -0600 |
| commit | d981cb5b9fa0da9da6a6c8b9ae7cbe789c3b3214 (patch) | |
| tree | f412dc2481160bd1d32ef573b7b6fd58dae1834e /tools/perf/scripts/python/stackcollapse.py | |
| parent | 11bde986002c0af67eb92d73321d06baefae7128 (diff) | |
block: fix a device invalidation regression
Historically we only set the capacity to zero for devices that support
partitions (independ of actually having partitions created). Doing that
is rather inconsistent, but changing it broke legacy udisks polling for
legacy ide-cdrom devices. Use the crude a crude check for devices that
either are non-removable or partitionable to get the sane behavior for
most device while not breaking userspace for this particular setup.
Fixes: a1548b674403 ("block: move rescan_partitions to fs/block_dev.c")
Reported-by: He Zhe <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Tested-by: He Zhe <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions