On Sun, 17 Apr 2022 10:10:34 +0100, Pavel Begunkov wrote: > If all completed requests in io_do_iopoll() were marked with > REQ_F_CQE_SKIP, we'll not only skip CQE posting but also > io_free_batch_list() leaking memory and resources. > > Move @nr_events increment before REQ_F_CQE_SKIP check. We'll potentially > return the value greater than the real one, but iopolling will deal with > it and the userspace will re-iopoll if needed. In anyway, I don't think > there are many use cases for REQ_F_CQE_SKIP + IOPOLL. > > [...] Applied, thanks! [1/1] io_uring: fix leaks on IOPOLL and CQE_SKIP commit: c0713540f6d55c53dca65baaead55a5a8b20552d Best regards, -- Jens Axboe