io_uring/kbuf: use 'bl' directly rather than req->buf_list
authorJens Axboe <axboe@kernel.dk>
Thu, 8 Aug 2024 16:33:16 +0000 (10:33 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 18 Aug 2024 20:40:21 +0000 (14:40 -0600)
commitb656f966e6ec7b231726e8c629ac9c72b134a9b6
tree08c5a034ac194d90f5eab14ce287145644281e3b
parent0b3480f3ffadc55b0a3c520ce5e8d0b5ac259aa9
io_uring/kbuf: use 'bl' directly rather than req->buf_list

req->buf_list is assigned higher up and is safe to use as we remain
within a locked region, as is the 'bl' variable itself from which it
was assigned. To improve readability, use 'bl' directly rather than
get it from the io_kiocb, if we need to increment the head directly
in the buffer selection path. This makes it readily apparent that
it's the same io_buffer_list being used.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/kbuf.c