diff options
author | Xuan Zhuo <xuanzhuo@linux.alibaba.com> | 2020-06-23 13:34:06 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-06-23 19:54:30 +0200 |
commit | b772f07add1c0b22e02c0f1e96f647560679d3a9 (patch) | |
tree | f940038f6a1d4e1f26ed0ea0217a636af4da2b58 /sound/soc/soc-ops.c | |
parent | Linux 5.8-rc2 (diff) | |
download | linux-b772f07add1c0b22e02c0f1e96f647560679d3a9.tar.xz linux-b772f07add1c0b22e02c0f1e96f647560679d3a9.zip |
io_uring: fix io_sq_thread no schedule when busy
When the user consumes and generates sqe at a fast rate,
io_sqring_entries can always get sqe, and ret will not be equal to -EBUSY,
so that io_sq_thread will never call cond_resched or schedule, and then
we will get the following system error prompt:
rcu: INFO: rcu_sched self-detected stall on CPU
or
watchdog: BUG: soft lockup-CPU#23 stuck for 112s! [io_uring-sq:1863]
This patch checks whether need to call cond_resched() by checking
the need_resched() function every cycle.
Suggested-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'sound/soc/soc-ops.c')
0 files changed, 0 insertions, 0 deletions