summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-09-01 23:15:59 +0300
committerJens Axboe <axboe@kernel.dk>2021-09-03 15:16:11 +0300
commitfa84693b3c896460831fe0750554121121a23da8 (patch)
tree5fe8b342f8c256587f47e3de11ebb4c89b9e78b0 /scripts/gdb/linux/tasks.py
parent3146cba99aa284b1d4a10fbd923df953f1d18035 (diff)
downloadlinux-fa84693b3c896460831fe0750554121121a23da8.tar.xz
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 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions