On 1/4/23 01:34, Pavel Begunkov wrote: Damn, the subj is wrong, it's not an RFC. Same with the other patch
Unlike normal tw, nothing prevents deferred tw to be executed right after an tw item added to ->work_llist in io_req_local_work_add(). For instance, the waiting task may get waken up by CQ posting or a normal tw. Thus we need to pin the ring for the rest of io_req_local_work_add() Cc: stable@xxxxxxxxxxxxxxx Fixes: c0e0d6ba25f18 ("io_uring: add IORING_SETUP_DEFER_TASKRUN")
-- Pavel Begunkov