]> asedeno.scripts.mit.edu Git - linux.git/commit
io_uring: only !null ptr to io_issue_sqe()
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 21 Nov 2019 20:21:03 +0000 (23:21 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Nov 2019 02:56:11 +0000 (19:56 -0700)
commitf9bd67f69af56d712bfd498f5ad9cf7bb177d600
treebe1887f7d4a4eb444d9491731c5548ed102dd6ce
parentb18fdf71e01fba29a804d63f8c1e2ed61011170d
io_uring: only !null ptr to io_issue_sqe()

Pass only non-null @nxt to io_issue_sqe() and handle it at the caller's
side. And propagate it.

- kiocb_done() is only called from io_read() and io_write(), which are
only called from io_issue_sqe(), so it's @nxt != NULL

- io_put_req_find_next() is called either with explicitly non-null local
nxt, or from one of the functions in io_issue_sqe() switch (or their
callees).

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c