summaryrefslogtreecommitdiffstats
path: root/drivers/nvme
diff options
context:
space:
mode:
authorJackie Liu2019-08-14 11:35:22 +0200
committerJens Axboe2019-08-15 19:21:39 +0200
commita982eeb09b6030e567b8b815277c8c9197168040 (patch)
tree1086aec4590f89b11422f491c0887e38cb5864e0 /drivers/nvme
parentblock: remove REQ_NOWAIT_INLINE (diff)
downloadkernel-qcow2-linux-a982eeb09b6030e567b8b815277c8c9197168040.tar.gz
kernel-qcow2-linux-a982eeb09b6030e567b8b815277c8c9197168040.tar.xz
kernel-qcow2-linux-a982eeb09b6030e567b8b815277c8c9197168040.zip
io_uring: fix an issue when IOSQE_IO_LINK is inserted into defer list
This patch may fix two issues: First, when IOSQE_IO_DRAIN set, the next IOs need to be inserted into defer list to delay execution, but link io will be actively scheduled to run by calling io_queue_sqe. Second, when multiple LINK_IOs are inserted together with defer_list, the LINK_IO is no longer keep order. |-------------| | LINK_IO | ----> insert to defer_list ----------- |-------------| | | LINK_IO | ----> insert to defer_list ----------| |-------------| | | LINK_IO | ----> insert to defer_list ----------| |-------------| | | NORMAL_IO | ----> insert to defer_list ----------| |-------------| | | queue_work at same time <-----| Fixes: 9e645e1105c ("io_uring: add support for sqe links") Signed-off-by: Jackie Liu <liuyun01@kylinos.cn> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme')
0 files changed, 0 insertions, 0 deletions