]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix wrong sequence setting logic
authorJackie Liu <liuyun01@kylinos.cn>
Mon, 9 Sep 2019 12:50:39 +0000 (20:50 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Sep 2019 22:14:47 +0000 (16:14 -0600)
commitce2a8c5dd4e32332197364632aa3b5a7cedd74d6
treea3844c46ef13328be32e5894046b45fe04a6c2b5
parent8b8c027163714a0b1a03c0f8215a5f44848badb6
io_uring: fix wrong sequence setting logic

Sqo_thread will get sqring in batches, which will cause
ctx->cached_sq_head to be added in batches. if one of these
sqes is set with the DRAIN flag, then he will never get a
chance to process, and finally sqo_thread will not exit.

Fixes: bc80a87477c ("io_uring: add support for marking commands as draining")
Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c