diff options
| author | Yu Kuai <[email protected]> | 2023-03-07 10:55:52 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-03-07 14:24:38 +0000 |
| commit | 428913bce1e67ccb4dae317fd0332545bf8c9233 (patch) | |
| tree | 879ff403638264c4ed3b5250b6f528a5660f77d9 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | Linux 6.3-rc1 (diff) | |
| download | kernel-428913bce1e67ccb4dae317fd0332545bf8c9233.tar.gz kernel-428913bce1e67ccb4dae317fd0332545bf8c9233.zip | |
block: fix wrong mode for blkdev_put() from disk_scan_partitions()
If disk_scan_partitions() is called with 'FMODE_EXCL',
blkdev_get_by_dev() will be called without 'FMODE_EXCL', however, follow
blkdev_put() is still called with 'FMODE_EXCL', which will cause
'bd_holders' counter to leak.
Fix the problem by using the right mode for blkdev_put().
Reported-by: [email protected]
Link: https://lore.kernel.org/lkml/[email protected]/T/
Tested-by: Julian Ruess <[email protected]>
Fixes: e5cfefa97bcc ("block: fix scan partition for exclusively open device again")
Signed-off-by: Yu Kuai <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
