io_uring: move io_req_put_rsrc_nodes()
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 6 May 2025 12:31:16 +0000 (13:31 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 May 2025 16:11:23 +0000 (10:11 -0600)
commit35adea1d018ab1e450ea2304e58dc2f987a639d3
tree35ebfb3db8acbdfde5577095382f3045b651096f
parent9c2ff3f9b5e0202d1cc1f6193b1e96df203ae4a4
io_uring: move io_req_put_rsrc_nodes()

It'd be nice to hide details of how rsrc nodes are used by a request
from rsrc.c, specifically which request fields store them, and what bits
are signifying if there is a node in a request. It rather belong to
generic request handling, so move the helper to io_uring.c. While doing
so remove clearing of ->buf_node as it's controlled by REQ_F_BUF_NODE
and doesn't require zeroing.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/bb73fb42baf825edb39344365aff48cdfdd4c692.1746533789.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
io_uring/rsrc.h