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 'interrupting_kthread_stop-for-v5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace

Pull kthread update from Eric Biederman:
"Break out of wait loops on kthread_stop()

This is a small tweak to kthread_stop so it breaks out of
interruptible waits, that don't explicitly test for kthread_stop.

These interruptible waits occassionaly occur in kernel threads do to
code sharing"

* tag 'interrupting_kthread_stop-for-v5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
signal: break out of wait loops on kthread_stop()

+1
+1
kernel/kthread.c
··· 704 704 kthread = to_kthread(k); 705 705 set_bit(KTHREAD_SHOULD_STOP, &kthread->flags); 706 706 kthread_unpark(k); 707 + set_tsk_thread_flag(k, TIF_NOTIFY_SIGNAL); 707 708 wake_up_process(k); 708 709 wait_for_completion(&kthread->exited); 709 710 ret = kthread->result;