summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2020-09-01 21:52:42 +0300
committerJens Axboe <axboe@kernel.dk>2020-09-02 04:38:32 +0300
commitda437b95db83106319d337a5859e6dfb464b085a (patch)
tree9bc64072204d09302f96aa71d088a4f5646c1eee /tools/perf/scripts/python/check-perf-trace.py
parent7ca5b2e60bfa4aa5b8d52e9c3e2a757c581bec1d (diff)
downloadlinux-da437b95db83106319d337a5859e6dfb464b085a.tar.xz
blk-iocost: grab ioc->lock for debt handling
Currently, debt handling requires only iocg->waitq.lock. In the future, we want to adjust and propagate inuse changes depending on debt status. Let's grab ioc->lock in debt handling paths in preparation. * Because ioc->lock nests outside iocg->waitq.lock, the decision to grab ioc->lock needs to be made before entering the critical sections. * Add and use iocg_[un]lock() which handles the conditional double locking. * Add @pay_debt to iocg_kick_waitq() so that debt payment happens only when the caller grabbed both locks. This patch is prepatory and the comments contain references to future changes. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions