mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 23:51:37 +00:00
b416514054
RCU sometimes needs to perform a delayed wake up for specific kthreads
handling offloaded callbacks (RCU_NOCB). These wakeups are performed
by timers and upon entry to idle (also to guest and to user on nohz_full).
However the delayed wake-up on kernel exit is actually performed after
the thread flags are fetched towards the fast path check for work to
do on exit to user. As a result, and if there is no other pending work
to do upon that kernel exit, the current task will resume to userspace
with TIF_RESCHED set and the pending wake up ignored.
Fix this with fetching the thread flags _after_ the delayed RCU-nocb
kthread wake-up.
Fixes:
|
||
---|---|---|
.. | ||
common.c | ||
common.h | ||
kvm.c | ||
Makefile | ||
syscall_user_dispatch.c |