diff options
author | Jens Axboe <axboe@kernel.dk> | 2021-09-01 14:15:59 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-09-03 06:16:11 -0600 |
commit | fa84693b3c896460831fe0750554121121a23da8 (patch) | |
tree | 5fe8b342f8c256587f47e3de11ebb4c89b9e78b0 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 3146cba99aa284b1d4a10fbd923df953f1d18035 (diff) |
io_uring: ensure IORING_REGISTER_IOWQ_MAX_WORKERS works with SQPOLL
SQPOLL has a different thread doing submissions, we need to check for
that and use the right task context when updating the worker values.
Just hold the sqd->lock across the operation, this ensures that the
thread cannot go away while we poke at ->io_uring.
Link: https://github.com/axboe/liburing/issues/420
Fixes: 2e480058ddc2 ("io-wq: provide a way to limit max number of workers")
Reported-by: Johannes Lundberg <johalun0@gmail.com>
Tested-by: Johannes Lundberg <johalun0@gmail.com>
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