OSDN Git Service

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)
committerJens Axboe <axboe@kernel.dk>
Mon, 10 Aug 2020 21:19:25 +0000 (15:19 -0600)
commit9b7adba9eaec28e0e4343c96d0dbeb9578802f5f
tree5dbf29bdddb9f401cb6a38468d7ad90896f4aa9f
parent7271ef3a93a832180068c7aade3f130b7f39b17e
io_uring: add missing REQ_F_COMP_LOCKED for nested requests

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>
fs/io_uring.c