diff options
author | Jan Kara <[email protected]> | 2022-04-01 12:27:49 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-04-17 19:34:29 -0600 |
commit | 4e54a2493e582361adc3bfbf06c7d50d19d18837 (patch) | |
tree | eb83d33e016c6e55c9871aae1ba01e8b82b0f0fc /tools/perf/scripts/python/compaction-times.py | |
parent | 09f871868080c33992cd6a9b72a5ca49582578fa (diff) |
bfq: Get rid of __bio_blkcg() usage
BFQ usage of __bio_blkcg() is a relict from the past. Furthermore if bio
would not be associated with any blkcg, the usage of __bio_blkcg() in
BFQ is prone to races with the task being migrated between cgroups as
__bio_blkcg() calls at different places could return different blkcgs.
Convert BFQ to the new situation where bio->bi_blkg is initialized in
bio_set_dev() and thus practically always valid. This allows us to save
blkcg_gq lookup and noticeably simplify the code.
CC: [email protected]
Fixes: 0fe061b9f03c ("blkcg: fix ref count issue with bio_blkcg() using task_css")
Tested-by: "yukuai (C)" <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions