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>
Wed, 22 Jun 2022 17:32:28 +0000 (11:32 -0600)
commitf27d5dcd1e462914ff8ca69a53a4dbea6e7b5e62
tree11640f16b481597f804b091cd2a3977667b3de3b
parent8c8a4601b7612baaa73dceef45b146bf92537ef5
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