X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=include%2Flinux%2Frcupdate.h;h=468228750299090e8fd6480e943b3a4a487e2018;hb=5cd37193ce8539be1e6ef76be226f4bcc984e0f5;hp=ed4f5939a452cb424671f87dc9911fe318cb1fc3;hpb=a94844b22a2e2b9155bbc0878c507850477221c2;p=mirror_ubuntu-bionic-kernel.git diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index ed4f5939a452..468228750299 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h @@ -331,12 +331,13 @@ static inline void rcu_init_nohz(void) extern struct srcu_struct tasks_rcu_exit_srcu; #define rcu_note_voluntary_context_switch(t) \ do { \ + rcu_all_qs(); \ if (ACCESS_ONCE((t)->rcu_tasks_holdout)) \ ACCESS_ONCE((t)->rcu_tasks_holdout) = false; \ } while (0) #else /* #ifdef CONFIG_TASKS_RCU */ #define TASKS_RCU(x) do { } while (0) -#define rcu_note_voluntary_context_switch(t) do { } while (0) +#define rcu_note_voluntary_context_switch(t) rcu_all_qs() #endif /* #else #ifdef CONFIG_TASKS_RCU */ /**