io_uring: don't prepare DRAIN reqs twice
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 17 May 2020 11:02:11 +0000 (14:02 +0300)
committerJens Axboe <axboe@kernel.dk>
Sun, 17 May 2020 15:22:09 +0000 (09:22 -0600)
commit650b548129b60b0d23508351800108196f4aa89f
tree97d71e8144c7de809786791483fa03edc73f6919
parent583863ed918136412ddf14de2e12534f17cfdc6f
io_uring: don't prepare DRAIN reqs twice

If req->io is not NULL, it's already prepared. Don't do it again,
it's dangerous.

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