aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-11-13 13:54:49 -0700
committerJens Axboe <axboe@kernel.dk>2019-11-13 19:40:57 -0700
commite61df66c69b11bc050d233dc95714a6339192c28 (patch)
tree9cdf9136edac5778032ad517a7f72c2bd8e033c7 /tools/perf/scripts/python/exported-sql-viewer.py
parent36c2f9223e84c1aa84bfba90cb2e74b517c92a54 (diff)
io-wq: ensure free/busy list browsing see all items
We have two lists for workers in io-wq, a busy and a free list. For certain operations we want to browse all workers, and we currently do that by browsing the two separate lists. But since these lists are RCU protected, we can potentially miss workers if they move between the two lists while we're browsing them. Add a third list, all_list, that simply holds all workers. A worker is added to that list when it starts, and removed when it exits. This makes the worker iteration cleaner, too. Reported-by: Paul E. McKenney <paulmck@kernel.org> Reviewed-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions