diff options
author | Jackie Liu <liuyun01@kylinos.cn> | 2019-09-09 20:50:39 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-05 15:12:06 +0200 |
commit | 3f52b1251503c92d7f382d350202d7dcad86fc6c (patch) | |
tree | de71ebb4a475fcb0ba4623b74791747afc9c03fe /block/blk-throttle.c | |
parent | 664acfa7199a4625627faee9aa6ddde20a23ab35 (diff) |
io_uring: fix wrong sequence setting logic
[ Upstream commit 8776f3fa15a5cd213c4dfab7ddaf557983374ea6 ]
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: de0617e4671 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'block/blk-throttle.c')
0 files changed, 0 insertions, 0 deletions