diff options
author | Christoph Hellwig <[email protected]> | 2022-03-30 07:29:07 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-04-18 06:54:09 -0600 |
commit | 9acf381f3e8f715175c29f4b6d722f6b6797d139 (patch) | |
tree | 9f0a39c15820a6772d4cd0b60f458010b5ac6c64 /tools/perf/scripts/python/sctop.py | |
parent | dbdc1be32591af023db2812706f01e6cd2f42bfc (diff) |
block: turn bdev->bd_openers into an atomic_t
All manipulation of bd_openers is under disk->open_mutex and will remain
so for the foreseeable future. But at least one place reads it without
the lock (blkdev_get) and there are more to be added. So make sure the
compiler does not do turn the increments and decrements into non-atomic
sequences by using an atomic_t.
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/sctop.py')
0 files changed, 0 insertions, 0 deletions