summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-11-13 23:54:49 +0300
committerJens Axboe <axboe@kernel.dk>2019-11-14 05:40:57 +0300
commite61df66c69b11bc050d233dc95714a6339192c28 (patch)
tree9cdf9136edac5778032ad517a7f72c2bd8e033c7 /tools/perf/scripts/python
parent36c2f9223e84c1aa84bfba90cb2e74b517c92a54 (diff)
downloadlinux-e61df66c69b11bc050d233dc95714a6339192c28.tar.xz
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')
0 files changed, 0 insertions, 0 deletions