io_uring: make task_work pending check dependent on ring type
authorJens Axboe <axboe@kernel.dk>
Thu, 21 Nov 2024 15:27:10 +0000 (08:27 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Jun 2025 21:41:46 +0000 (15:41 -0600)
commita3ec916ea207aad844102f54b10ccdbe2bbb79a2
treea0308bab2c4244fdf3172717870b6614cf8e5de4
parent44a5ab7a7958fbf190ae384b8ef252f23b840c1b
io_uring: make task_work pending check dependent on ring type

There's no need to check for generic task_work for DEFER_TASKRUN, if we
have local task_work pending. This avoids dipping into the huge
task_struct, if we have normal task_work pending.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.h