io_uring: add missing REQ_F_COMP_LOCKED for nested requests
authorJens Axboe <axboe@kernel.dk>
Mon, 10 Aug 2020 16:54:02 +0000 (10:54 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:24:19 +0000 (08:24 +0200)
commit0566463676e0858897acd9555f905e4dcf29a738
tree10eee71818985224ce523969b95f1a5a2a19dcbb
parentfb910a7d69163ccfc962999bf404589c6072e827
io_uring: add missing REQ_F_COMP_LOCKED for nested requests

commit 9b7adba9eaec28e0e4343c96d0dbeb9578802f5f upstream.

When we traverse into failing links or timeouts, we need to ensure we
propagate the REQ_F_COMP_LOCKED flag to ensure that we correctly signal
to the completion side that we already hold the completion lock.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/io_uring.c