aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2022-03-30 07:29:16 +0200
committerJens Axboe <[email protected]>2022-04-18 06:54:09 -0600
commita0e286b6a5b61d4da01bdf865071c4da417046d6 (patch)
tree3bc885d95283578b71c3750935e1d8d3bf3604c2 /tools/perf/scripts/python/stat-cpi.py
parent158eaeba4b8edf9940f64daa83cbd1ac7db7593c (diff)
loop: remove lo_refcount and avoid lo_mutex in ->open / ->release
lo_refcount counts how many openers a loop device has, but that count is already provided by the block layer in the bd_openers field of the whole-disk block_device. Remove lo_refcount and allow opens to succeed even on devices beeing deleted - now that ->free_disk is implemented we can handle that race gracefull and all I/O on it will just fail. Similarly there is a small race window now where loop_control_remove does not synchronize the delete vs the remove due do bd_openers not being under lo_mutex protection, but we can handle that just as gracefully. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions