aboutsummaryrefslogtreecommitdiffstats
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2021-09-13 19:08:51 +0000
committerJens Axboe <[email protected]>2021-09-14 01:44:29 +0000
commit41d3a6bd1d37149b18331fc4bb789c5456a7aeb0 (patch)
tree41f4a7141c942781867487cb0cd7104fd7b386ce /lib/netdev-notifier-error-inject.c
parentio-wq: provide IO_WQ_* constants for IORING_REGISTER_IOWQ_MAX_WORKERS arg items (diff)
downloadkernel-41d3a6bd1d37149b18331fc4bb789c5456a7aeb0.tar.gz
kernel-41d3a6bd1d37149b18331fc4bb789c5456a7aeb0.zip
io_uring: pin SQPOLL data before unlocking ring lock
We need to re-check sqd->thread after we've dropped the lock. Pin the sqd before doing the lockdep lock dance, and check if the thread is alive after that. It's either NULL or alive, as the SQPOLL thread cannot exit without holding the same sqd->lock. Reported-and-tested-by: [email protected] Fixes: fa84693b3c89 ("io_uring: ensure IORING_REGISTER_IOWQ_MAX_WORKERS works with SQPOLL") Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions