io_uring: fix clear IORING_SETUP_R_DISABLED in wrong function
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 15 Jul 2021 13:18:25 +0000 (21:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jul 2021 07:45:02 +0000 (09:45 +0200)
commit090588059c30ef1b49b82da96bfaead8f430c48e
treed4d3d8f94f1726e9ef790989c36dfe7b270ed0f1
parentaa57b2d6b37e3630116e39f0f2acc8da0de6faf5
io_uring: fix clear IORING_SETUP_R_DISABLED in wrong function

In commit 3ebba796fa25 ("io_uring: ensure that SQPOLL thread is started for exit"),
the IORING_SETUP_R_DISABLED is cleared in io_sq_offload_start(), but when backport
it to stable-5.10, IORING_SETUP_R_DISABLED is cleared in __io_req_task_submit(),
move clearing IORING_SETUP_R_DISABLED to io_sq_offload_start() to fix this.

Fixes: 6cae8095490ca ("io_uring: ensure that SQPOLL thread is started for exit")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/io_uring.c