]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/zcrx: recheck ifq on shutdown
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 19 Feb 2025 10:08:01 +0000 (10:08 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 19 Feb 2025 15:07:31 +0000 (08:07 -0700)
commitbc674a04c47cc23ad7e12893cad6226ea8f7a8ec
treefd415caa84b2bd7ab1bf151e59cb26957eb7eb79
parent71082faa2c648a2adc1167b37565e195a8df1bc7
io_uring/zcrx: recheck ifq on shutdown

io_ring_exit_work() checks ifq before shutting it down and guarantees
that the pointer is stable, but instead of relying on rather complicated
synchronisation recheck the ifq pointer inside.

Reported-by: Kees Bakker <kees@ijzerbout.nl>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/905e55c47235ab26377a735294f939f31d00ae53.1739934175.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/zcrx.c