On 7/6/23 3:32?AM, Lu Hongfei wrote: > A new function called io_put_task_refs has been defined for pairing > with io_get_task_refs. > > In io_submit_sqes(), when req is not fully sent(i.e. left != 0), it is > necessary to call the io_put_task_refs() to recover the current process's > cached_refs and pair it with the io_get_task_refs(), which is easy to > understand and looks more regular. No point having a helper for just a single caller. -- Jens Axboe