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 branch 'for-7.0-fixes' into for-7.1

Tejun Heo 6af9b391 0a0d3b8d

+5 -4
+5 -4
kernel/sched/ext.c
··· 6867 6867 if (!READ_ONCE(helper)) { 6868 6868 mutex_lock(&helper_mutex); 6869 6869 if (!helper) { 6870 - helper = kthread_run_worker(0, "scx_enable_helper"); 6871 - if (IS_ERR_OR_NULL(helper)) { 6872 - helper = NULL; 6870 + struct kthread_worker *w = 6871 + kthread_run_worker(0, "scx_enable_helper"); 6872 + if (IS_ERR_OR_NULL(w)) { 6873 6873 mutex_unlock(&helper_mutex); 6874 6874 return -ENOMEM; 6875 6875 } 6876 - sched_set_fifo(helper->task); 6876 + sched_set_fifo(w->task); 6877 + WRITE_ONCE(helper, w); 6877 6878 } 6878 6879 mutex_unlock(&helper_mutex); 6879 6880 }