linux/io_uring
Wenwen Chen 533ab73f5b io_uring: unlock sqd->lock before sq thread release CPU
The sq thread actively releases CPU resources by calling the
cond_resched() and schedule() interfaces when it is idle. Therefore,
more resources are available for other threads to run.

There exists a problem in sq thread: it does not unlock sqd->lock before
releasing CPU resources every time. This makes other threads pending on
sqd->lock for a long time. For example, the following interfaces all
require sqd->lock: io_sq_offload_create(), io_register_iowq_max_workers()
and io_ring_exit_work().

Before the sq thread releases CPU resources, unlocking sqd->lock will
provide the user a better experience because it can respond quickly to
user requests.

Signed-off-by: Kanchan Joshi<joshi.k@samsung.com>
Signed-off-by: Wenwen Chen<wenwen.chen@samsung.com>
Link: https://lore.kernel.org/r/20230525082626.577862-1-wenwen.chen@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2023-05-25 09:30:13 -06:00
..
2023-04-26 12:40:31 -07:00
2023-04-03 07:16:15 -06:00
2023-04-26 12:40:31 -07:00
2022-12-07 06:47:13 -07:00
2023-03-30 08:12:29 -06:00
2022-07-24 18:39:11 -06:00
2023-05-04 08:19:05 -06:00
2023-01-29 15:17:41 -07:00
2023-04-03 07:16:15 -06:00
2022-07-24 18:39:14 -06:00
2023-05-07 10:00:09 -07:00
2023-04-26 12:52:58 -07:00