]> www.infradead.org Git - users/hch/block.git/commit
io_uring: don't clear req->kbuf when buffer selection is done
authorJens Axboe <axboe@kernel.dk>
Sun, 1 May 2022 18:31:56 +0000 (12:31 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 5 May 2022 23:17:37 +0000 (17:17 -0600)
commit0a194603ba7ee67b4e39ec0ee5cda70a356ea618
tree0229415c638ab0df0c69dd191096419551770561
parenta69bac5b0ddba1794d5d094d5249eee120b7561c
io_uring: don't clear req->kbuf when buffer selection is done

It's not needed as the REQ_F_BUFFER_SELECTED flag tracks the state of
whether or not kbuf is valid, so just drop it.

Suggested-by: Dylan Yudaken <dylany@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c