io_uring: hook all linked requests via link_list
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 5 Dec 2019 13:16:35 +0000 (16:16 +0300)
committerJens Axboe <axboe@kernel.dk>
Thu, 5 Dec 2019 13:54:52 +0000 (06:54 -0700)
commit4493233edcfc0ad0a7f76f1c83f95b1bcf280547
tree0913f70eb34b9be0a43af379dd2b03df164a9b6f
parent2e6e1fde32d7d41cf076c21060c329d3fdbce25c
io_uring: hook all linked requests via link_list

Links are created by chaining requests through req->list with an
exception that head uses req->link_list. (e.g. link_list->list->list)
Because of that, io_req_link_next() needs complex splicing to advance.

Link them all through list_list. Also, it seems to be simpler and more
consistent IMHO.

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