Home
last modified time | relevance | path

Searched refs:gp_state (Results 1 – 8 of 8) sorted by relevance

/linux/kernel/rcu/
H A Dsync.c62 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_IDLE); in rcu_sync_func()
63 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_PASSED); in rcu_sync_func()
70 WRITE_ONCE(rsp->gp_state, GP_PASSED); in rcu_sync_func()
72 } else if (rsp->gp_state == GP_REPLAY) { in rcu_sync_func()
77 WRITE_ONCE(rsp->gp_state, GP_EXIT); in rcu_sync_func()
85 WRITE_ONCE(rsp->gp_state, GP_IDLE); in rcu_sync_func()
107 int gp_state; in rcu_sync_enter() local
110 gp_state = rsp->gp_state; in rcu_sync_enter()
111 if (gp_state == GP_IDLE) { in rcu_sync_enter()
112 WRITE_ONCE(rsp->gp_state, GP_ENTER); in rcu_sync_enter()
[all …]
H A Dtree_stall.h581 gp_state_getname(rcu_state.gp_state), in rcu_check_gp_kthread_starvation()
582 data_race(READ_ONCE(rcu_state.gp_state)), in rcu_check_gp_kthread_starvation()
605 short gp_state; in rcu_check_gp_kthread_expired_fqs_timer() local
613 gp_state = smp_load_acquire(&rcu_state.gp_state); in rcu_check_gp_kthread_expired_fqs_timer()
616 if (gp_state == RCU_GP_WAIT_FQS && in rcu_check_gp_kthread_expired_fqs_timer()
890 bool rcu_check_boost_fail(unsigned long gp_state, int *cpup) in rcu_check_boost_fail() argument
953 rcu_state.name, gp_state_getname(rcu_state.gp_state), in show_rcu_gp_kthreads()
954 data_race(READ_ONCE(rcu_state.gp_state)), in show_rcu_gp_kthreads()
H A Drcutorture.c419 bool (*check_boost_failed)(unsigned long gp_state, int *cpup);
1239 static bool rcu_torture_boost_failed(unsigned long gp_state, unsigned long *start) in rcu_torture_boost_failed() argument
1253 if (cur_ops->poll_gp_state(gp_state)) in rcu_torture_boost_failed()
1255 if (cur_ops->check_boost_failed && !cur_ops->check_boost_failed(gp_state, &cpu)) { in rcu_torture_boost_failed()
1272 current->rt_priority, gp_state, end - *start); in rcu_torture_boost_failed()
1275 gp_done = cur_ops->poll_gp_state(gp_state); in rcu_torture_boost_failed()
1276 pr_info("Boost inversion: GP %lu %s.\n", gp_state, in rcu_torture_boost_failed()
1282 } else if (cur_ops->check_boost_failed && !cur_ops->check_boost_failed(gp_state, NULL)) { in rcu_torture_boost_failed()
1292 unsigned long gp_state; in rcu_torture_boost() local
1334 if (gp_initiated && !failed && !cur_ops->poll_gp_state(gp_state)) in rcu_torture_boost()
[all …]
H A Drcu.h638 static inline bool rcu_check_boost_fail(unsigned long gp_state, int *cpup) { return true; } in rcu_check_boost_fail() argument
648 bool rcu_check_boost_fail(unsigned long gp_state, int *cpup);
H A Dtasks.h98 int gp_state; member
227 rtp->gp_state = newstate; in set_tasks_gp_state()
235 int i = data_race(rtp->gp_state); // Let KCSAN detect update races in tasks_gp_state_getname()
739 tasks_gp_state_getname(rtp), data_race(rtp->gp_state), in show_rcu_tasks_generic_gp_kthread()
763 data_race(rtp->gp_state), tasks_gp_state_getname(rtp)); in rcu_tasks_torture_stats_print_generic()
H A Dtree.c94 .gp_state = RCU_GP_IDLE,
1885 WRITE_ONCE(rcu_state.gp_state, RCU_GP_ONOFF); in rcu_gp_init()
1953 WRITE_ONCE(rcu_state.gp_state, RCU_GP_INIT); in rcu_gp_init()
2094 WRITE_ONCE(rcu_state.gp_state, RCU_GP_WAIT_FQS); in rcu_gp_fqs_loop()
2098 WRITE_ONCE(rcu_state.gp_state, RCU_GP_DOING_FQS); in rcu_gp_fqs_loop()
2223 WRITE_ONCE(rcu_state.gp_state, RCU_GP_IDLE); in rcu_gp_cleanup()
2280 WRITE_ONCE(rcu_state.gp_state, RCU_GP_WAIT_GPS); in rcu_gp_kthread()
2285 WRITE_ONCE(rcu_state.gp_state, RCU_GP_DONE_GPS); in rcu_gp_kthread()
2300 WRITE_ONCE(rcu_state.gp_state, RCU_GP_CLEANUP); in rcu_gp_kthread()
2302 WRITE_ONCE(rcu_state.gp_state, RCU_GP_CLEANED); in rcu_gp_kthread()
[all …]
H A Dtree.h368 short gp_state; /* GP kthread sleep state. */ member
/linux/include/linux/
H A Drcu_sync.h18 int gp_state; member
36 return !READ_ONCE(rsp->gp_state); /* GP_IDLE */ in rcu_sync_is_idle()
45 .gp_state = 0, \