io_uring: fail links of cancelled timeouts
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 13 Sep 2021 15:45:41 +0000 (09:45 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:40:05 +0000 (13:40 +0200)
commit548ee201fb4a3c372a332284df3ecc21749918e1
tree191b5f3fbaad34c19a8631e4004ea8bf4afdc69a
parent54eb6211b979f21c4908719e8bfb005a1143e8c3
io_uring: fail links of cancelled timeouts

commit 2ae2eb9dde18979b40629dd413b9adbd6c894cdf upstream.

When we cancel a timeout we should mark it with REQ_F_FAIL, so
linked requests are cancelled as well, but not queued for further
execution.

Cc: stable@vger.kernel.org
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/fff625b44eeced3a5cae79f60e6acf3fbdf8f990.1631192135.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/io_uring.c