Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'io_uring-6.4-2023-05-26' of git://git.kernel.dk/linux

Pull io_uring fix from Jens Axboe:
"Just a single fix for the conditional schedule with the SQPOLL thread,
dropping the uring_lock if we do need to reschedule"

* tag 'io_uring-6.4-2023-05-26' of git://git.kernel.dk/linux:
io_uring: unlock sqd->lock before sq thread release CPU

+5 -1
+5 -1
io_uring/sqpoll.c
··· 255 255 sqt_spin = true; 256 256 257 257 if (sqt_spin || !time_after(jiffies, timeout)) { 258 - cond_resched(); 259 258 if (sqt_spin) 260 259 timeout = jiffies + sqd->sq_thread_idle; 260 + if (unlikely(need_resched())) { 261 + mutex_unlock(&sqd->lock); 262 + cond_resched(); 263 + mutex_lock(&sqd->lock); 264 + } 261 265 continue; 262 266 } 263 267