io_uring: fixup a few spots where link failure isn't flagged
authorJens Axboe <axboe@kernel.dk>
Wed, 6 Nov 2019 03:33:16 +0000 (20:33 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Nov 2019 03:33:16 +0000 (20:33 -0700)
commitf1f40853c01b5ccd0a1a29ce0b515c6f5405a798
treefe683f0a98c4e398af79d40b590eba5e4d7c499f
parent89723d0bd6c77540c01ce7db2cd6f8c3be2fd958
io_uring: fixup a few spots where link failure isn't flagged

If a request fails, we need to ensure we set REQ_F_FAIL_LINK on it if
REQ_F_LINK is set. Any failure in the chain should break the chain.

We were missing a few spots where this should be done. It might be nice
to generalize this somewhat at some point, as long as we factor in the
fact that failure looks different for each request type.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c