]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita303991eb2a5a1fe35b8b5be19fe03cd01755b09
tree97d71e8144c7de809786791483fa03edc73f6919
parentac890f93f8fa3307d0c3b6e701ad218f16bfe1ee
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