[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <cf70cba0-3ba2-3907-542d-c80216068f7b@kernel.dk>
Date: Thu, 6 Jul 2023 08:05:33 -0600
From: Jens Axboe <axboe@...nel.dk>
To: Lu Hongfei <luhongfei@...o.com>,
Pavel Begunkov <asml.silence@...il.com>,
io-uring@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: opensource.kernel@...o.com
Subject: Re: [PATCH] io_uring: A new function has been defined to make get/put
exist in pairs
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
Powered by blists - more mailing lists