io_uring: kbuf: add comments for some tricky code
authorHao Xu <howeyxu@tencent.com>
Fri, 17 Jun 2022 05:04:29 +0000 (13:04 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jul 2022 14:44:16 +0000 (08:44 -0600)
commitba15af9a627056fa844c9c1a3cab2662f822f56a
treebc581a3e6550976b5a4ae2b9acc4ba130270fec4
parent067d18f8798141d742a759d11fdaf43f205165db
io_uring: kbuf: add comments for some tricky code

Add comments to explain why it is always under uring lock when
incrementing head in __io_kbuf_recycle. And rectify one comemnt about
kbuf consuming in iowq case.

Signed-off-by: Hao Xu <howeyxu@tencent.com>
Link: https://lore.kernel.org/r/20220617050429.94293-1-hao.xu@linux.dev
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/kbuf.c