On Fri, 14 Apr 2023 15:53:13 +0800, Ming Lei wrote: > So far io_req_complete_post() only covers DEFER_TASKRUN by completing > request via task work when the request is completed from IOWQ. > > However, uring command could be completed from any context, and if io > uring is setup with DEFER_TASKRUN, the command is required to be > completed from current context, otherwise wait on IORING_ENTER_GETEVENTS > can't be wakeup, and may hang forever. > > [...] Applied, thanks! [1/1] io_uring: complete request via task work in case of DEFER_TASKRUN commit: 860e1c7f8b0b43fbf91b4d689adfaa13adb89452 Best regards, -- Jens Axboe