aboutsummaryrefslogtreecommitdiffstats
path: root/net/socket.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-05-01 12:08:35 -0600
committerJens Axboe <axboe@kernel.dk>2022-05-09 06:29:06 -0600
commit1dbd023eb083249026d51f41cee48a7b199b3d4e (patch)
tree94a567c70a5807befeb457391884e7fd7962898c /net/socket.c
parentio_uring: move provided buffer state closer to submit state (diff)
downloadlinux-dev-1dbd023eb083249026d51f41cee48a7b199b3d4e.tar.xz
linux-dev-1dbd023eb083249026d51f41cee48a7b199b3d4e.zip
io_uring: eliminate the need to track provided buffer ID separately
We have io_kiocb->buf_index which is used for either fixed buffers, or for provided buffers. For the latter, it's used to hold the buffer group ID for buffer selection. Post selection, req->kbuf->bid is used to get the buffer ID. Store the buffer ID, when selected, in req->buf_index. If we do end up recycling the buffer, reset it back to the buffer group ID. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'net/socket.c')
0 files changed, 0 insertions, 0 deletions