OSDN Git Service

io_uring: fix handling SQEs requesting NOWAIT
authorStefan Bühler <source@stbuehler.de>
Sat, 27 Apr 2019 18:34:19 +0000 (20:34 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 30 Apr 2019 15:40:02 +0000 (09:40 -0600)
commit8449eedaa1da6a51d67190c905b1b54243e095f6
tree469de67ca696245db15b75bc6d2396071e1f07d9
parent37624b58542fb9f2d9a70e6ea006ef8a5f66c30b
io_uring: fix handling SQEs requesting NOWAIT

Not all request types set REQ_F_FORCE_NONBLOCK when they needed async
punting; reverse logic instead and set REQ_F_NOWAIT if request mustn't
be punted.

Signed-off-by: Stefan Bühler <source@stbuehler.de>
Merged with my previous patch for this.

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