Lines Matching full:ssp

76 static void srcu_reschedule(struct srcu_struct *ssp, unsigned long delay);
123 static void init_srcu_struct_data(struct srcu_struct *ssp)
133 sdp = per_cpu_ptr(ssp->sda, cpu);
137 sdp->srcu_gp_seq_needed = ssp->srcu_sup->srcu_gp_seq;
138 sdp->srcu_gp_seq_needed_exp = ssp->srcu_sup->srcu_gp_seq;
144 sdp->ssp = ssp;
164 static bool init_srcu_struct_nodes(struct srcu_struct *ssp, gfp_t gfp_flags)
176 ssp->srcu_sup->node = kcalloc(rcu_num_nodes, sizeof(*ssp->srcu_sup->node), gfp_flags);
177 if (!ssp->srcu_sup->node)
181 ssp->srcu_sup->level[0] = &ssp->srcu_sup->node[0];
183 ssp->srcu_sup->level[i] = ssp->srcu_sup->level[i - 1] + num_rcu_lvl[i - 1];
187 srcu_for_each_node_breadth_first(ssp, snp) {
198 if (snp == &ssp->srcu_sup->node[0]) {
205 if (snp == ssp->srcu_sup->level[level + 1])
207 snp->srcu_parent = ssp->srcu_sup->level[level - 1] +
208 (snp - ssp->srcu_sup->level[level]) /
217 snp_first = ssp->srcu_sup->level[level];
219 sdp = per_cpu_ptr(ssp->sda, cpu);
228 smp_store_release(&ssp->srcu_sup->srcu_size_state, SRCU_SIZE_WAIT_BARRIER);
237 static int init_srcu_struct_fields(struct srcu_struct *ssp, bool is_static)
240 ssp->srcu_sup = kzalloc(sizeof(*ssp->srcu_sup), GFP_KERNEL);
241 if (!ssp->srcu_sup)
244 spin_lock_init(&ACCESS_PRIVATE(ssp->srcu_sup, lock));
245 ssp->srcu_sup->srcu_size_state = SRCU_SIZE_SMALL;
246 ssp->srcu_sup->node = NULL;
247 mutex_init(&ssp->srcu_sup->srcu_cb_mutex);
248 mutex_init(&ssp->srcu_sup->srcu_gp_mutex);
249 ssp->srcu_sup->srcu_gp_seq = SRCU_GP_SEQ_INITIAL_VAL;
250 ssp->srcu_sup->srcu_barrier_seq = 0;
251 mutex_init(&ssp->srcu_sup->srcu_barrier_mutex);
252 atomic_set(&ssp->srcu_sup->srcu_barrier_cpu_cnt, 0);
253 INIT_DELAYED_WORK(&ssp->srcu_sup->work, process_srcu);
254 ssp->srcu_sup->sda_is_static = is_static;
256 ssp->sda = alloc_percpu(struct srcu_data);
257 ssp->srcu_ctrp = &ssp->sda->srcu_ctrs[0];
259 if (!ssp->sda)
261 init_srcu_struct_data(ssp);
262 ssp->srcu_sup->srcu_gp_seq_needed_exp = SRCU_GP_SEQ_INITIAL_VAL;
263 ssp->srcu_sup->srcu_last_gp_end = ktime_get_mono_fast_ns();
264 if (READ_ONCE(ssp->srcu_sup->srcu_size_state) == SRCU_SIZE_SMALL && SRCU_SIZING_IS_INIT()) {
265 if (!init_srcu_struct_nodes(ssp, GFP_ATOMIC))
267 WRITE_ONCE(ssp->srcu_sup->srcu_size_state, SRCU_SIZE_BIG);
269 ssp->srcu_sup->srcu_ssp = ssp;
270 smp_store_release(&ssp->srcu_sup->srcu_gp_seq_needed,
276 free_percpu(ssp->sda);
277 ssp->sda = NULL;
281 kfree(ssp->srcu_sup);
282 ssp->srcu_sup = NULL;
289 int __init_srcu_struct(struct srcu_struct *ssp, const char *name,
293 debug_check_no_locks_freed((void *)ssp, sizeof(*ssp));
294 lockdep_init_map(&ssp->dep_map, name, key, 0);
295 return init_srcu_struct_fields(ssp, false);
303 * @ssp: structure to initialize.
309 int init_srcu_struct(struct srcu_struct *ssp)
311 return init_srcu_struct_fields(ssp, false);
320 static void __srcu_transition_to_big(struct srcu_struct *ssp)
322 lockdep_assert_held(&ACCESS_PRIVATE(ssp->srcu_sup, lock));
323 smp_store_release(&ssp->srcu_sup->srcu_size_state, SRCU_SIZE_ALLOC);
329 static void srcu_transition_to_big(struct srcu_struct *ssp)
334 if (smp_load_acquire(&ssp->srcu_sup->srcu_size_state) != SRCU_SIZE_SMALL)
336 spin_lock_irqsave_rcu_node(ssp->srcu_sup, flags);
337 if (smp_load_acquire(&ssp->srcu_sup->srcu_size_state) != SRCU_SIZE_SMALL) {
338 spin_unlock_irqrestore_rcu_node(ssp->srcu_sup, flags);
341 __srcu_transition_to_big(ssp);
342 spin_unlock_irqrestore_rcu_node(ssp->srcu_sup, flags);
349 static void spin_lock_irqsave_check_contention(struct srcu_struct *ssp)
353 if (!SRCU_SIZING_IS_CONTEND() || ssp->srcu_sup->srcu_size_state)
356 if (ssp->srcu_sup->srcu_size_jiffies != j) {
357 ssp->srcu_sup->srcu_size_jiffies = j;
358 ssp->srcu_sup->srcu_n_lock_retries = 0;
360 if (++ssp->srcu_sup->srcu_n_lock_retries <= small_contention_lim)
362 __srcu_transition_to_big(ssp);
373 struct srcu_struct *ssp = sdp->ssp;
377 spin_lock_irqsave_rcu_node(ssp->srcu_sup, *flags);
378 spin_lock_irqsave_check_contention(ssp);
379 spin_unlock_irqrestore_rcu_node(ssp->srcu_sup, *flags);
389 static void spin_lock_irqsave_ssp_contention(struct srcu_struct *ssp, unsigned long *flags)
391 if (spin_trylock_irqsave_rcu_node(ssp->srcu_sup, *flags))
393 spin_lock_irqsave_rcu_node(ssp->srcu_sup, *flags);
394 spin_lock_irqsave_check_contention(ssp);
401 * to each update-side SRCU primitive. Use ssp->lock, which -is-
405 static void check_init_srcu_struct(struct srcu_struct *ssp)
410 if (!rcu_seq_state(smp_load_acquire(&ssp->srcu_sup->srcu_gp_seq_needed))) /*^^^*/
412 spin_lock_irqsave_rcu_node(ssp->srcu_sup, flags);
413 if (!rcu_seq_state(ssp->srcu_sup->srcu_gp_seq_needed)) {
414 spin_unlock_irqrestore_rcu_node(ssp->srcu_sup, flags);
417 init_srcu_struct_fields(ssp, true);
418 spin_unlock_irqrestore_rcu_node(ssp->srcu_sup, flags);
424 static bool srcu_gp_is_expedited(struct srcu_struct *ssp)
426 struct srcu_usage *sup = ssp->srcu_sup;
437 static bool srcu_readers_lock_idx(struct srcu_struct *ssp, int idx, bool gp, unsigned long unlocks)
444 struct srcu_data *sdp = per_cpu_ptr(ssp->sda, cpu);
451 "Mixed reader flavors for srcu_struct at %ps.\n", ssp);
461 static unsigned long srcu_readers_unlock_idx(struct srcu_struct *ssp, int idx, unsigned long *rdm)
468 struct srcu_data *sdp = per_cpu_ptr(ssp->sda, cpu);
474 "Mixed reader flavors for srcu_struct at %ps.\n", ssp);
483 static bool srcu_readers_active_idx_check(struct srcu_struct *ssp, int idx)
489 unlocks = srcu_readers_unlock_idx(ssp, idx, &rdm);
565 return srcu_readers_lock_idx(ssp, idx, did_gp, unlocks);
571 * @ssp: which srcu_struct to count active readers (holding srcu_read_lock).
577 static bool srcu_readers_active(struct srcu_struct *ssp)
583 struct srcu_data *sdp = per_cpu_ptr(ssp->sda, cpu);
644 static unsigned long srcu_get_delay(struct srcu_struct *ssp)
649 struct srcu_usage *sup = ssp->srcu_sup;
651 lockdep_assert_held(&ACCESS_PRIVATE(ssp->srcu_sup, lock));
652 if (srcu_gp_is_expedited(ssp))
671 * @ssp: structure to clean up.
676 void cleanup_srcu_struct(struct srcu_struct *ssp)
680 struct srcu_usage *sup = ssp->srcu_sup;
682 spin_lock_irq_rcu_node(ssp->srcu_sup);
683 delay = srcu_get_delay(ssp);
684 spin_unlock_irq_rcu_node(ssp->srcu_sup);
687 if (WARN_ON(srcu_readers_active(ssp)))
691 struct srcu_data *sdp = per_cpu_ptr(ssp->sda, cpu);
700 WARN_ON(srcu_readers_active(ssp))) {
702 __func__, ssp, rcu_seq_state(READ_ONCE(sup->srcu_gp_seq)),
713 free_percpu(ssp->sda);
714 ssp->sda = NULL;
716 ssp->srcu_sup = NULL;
724 void __srcu_check_read_flavor(struct srcu_struct *ssp, int read_flavor)
733 sdp = raw_cpu_ptr(ssp->sda);
750 int __srcu_read_lock(struct srcu_struct *ssp)
752 struct srcu_ctr __percpu *scp = READ_ONCE(ssp->srcu_ctrp);
756 return __srcu_ptr_to_ctr(ssp, scp);
765 void __srcu_read_unlock(struct srcu_struct *ssp, int idx)
768 this_cpu_inc(__srcu_ctr_to_ptr(ssp, idx)->srcu_unlocks.counter);
779 int __srcu_read_lock_nmisafe(struct srcu_struct *ssp)
781 struct srcu_ctr __percpu *scpp = READ_ONCE(ssp->srcu_ctrp);
786 return __srcu_ptr_to_ctr(ssp, scpp);
795 void __srcu_read_unlock_nmisafe(struct srcu_struct *ssp, int idx)
798 atomic_long_inc(&raw_cpu_ptr(__srcu_ctr_to_ptr(ssp, idx))->srcu_unlocks);
807 static void srcu_gp_start(struct srcu_struct *ssp)
811 lockdep_assert_held(&ACCESS_PRIVATE(ssp->srcu_sup, lock));
812 WARN_ON_ONCE(ULONG_CMP_GE(ssp->srcu_sup->srcu_gp_seq, ssp->srcu_sup->srcu_gp_seq_needed));
813 WRITE_ONCE(ssp->srcu_sup->srcu_gp_start, jiffies);
814 WRITE_ONCE(ssp->srcu_sup->srcu_n_exp_nodelay, 0);
816 rcu_seq_start(&ssp->srcu_sup->srcu_gp_seq);
817 state = rcu_seq_state(ssp->srcu_sup->srcu_gp_seq);
855 static void srcu_schedule_cbs_snp(struct srcu_struct *ssp, struct srcu_node *snp,
863 srcu_schedule_cbs_sdp(per_cpu_ptr(ssp->sda, cpu), delay);
876 static void srcu_gp_end(struct srcu_struct *ssp)
889 struct srcu_usage *sup = ssp->srcu_sup;
898 if (srcu_gp_is_expedited(ssp))
913 srcu_schedule_cbs_sdp(per_cpu_ptr(ssp->sda, get_boot_cpu_id()),
917 srcu_for_each_node_breadth_first(ssp, snp) {
935 srcu_schedule_cbs_snp(ssp, snp, mask, cbdelay);
942 sdp = per_cpu_ptr(ssp->sda, cpu);
959 srcu_gp_start(ssp);
961 srcu_reschedule(ssp, 0);
969 init_srcu_struct_nodes(ssp, GFP_KERNEL);
982 static void srcu_funnel_exp_start(struct srcu_struct *ssp, struct srcu_node *snp,
991 if (WARN_ON_ONCE(rcu_seq_done(&ssp->srcu_sup->srcu_gp_seq, s)) ||
1003 spin_lock_irqsave_ssp_contention(ssp, &flags);
1004 if (ULONG_CMP_LT(ssp->srcu_sup->srcu_gp_seq_needed_exp, s))
1005 WRITE_ONCE(ssp->srcu_sup->srcu_gp_seq_needed_exp, s);
1006 spin_unlock_irqrestore_rcu_node(ssp->srcu_sup, flags);
1022 static void srcu_funnel_gp_start(struct srcu_struct *ssp, struct srcu_data *sdp,
1031 struct srcu_usage *sup = ssp->srcu_sup;
1055 srcu_funnel_exp_start(ssp, snp, s);
1068 spin_lock_irqsave_ssp_contention(ssp, &flags);
1082 srcu_gp_start(ssp);
1091 !!srcu_get_delay(ssp));
1103 static bool try_check_zero(struct srcu_struct *ssp, int idx, int trycount)
1107 spin_lock_irq_rcu_node(ssp->srcu_sup);
1108 curdelay = !srcu_get_delay(ssp);
1109 spin_unlock_irq_rcu_node(ssp->srcu_sup);
1112 if (srcu_readers_active_idx_check(ssp, idx))
1125 static void srcu_flip(struct srcu_struct *ssp)
1159 WRITE_ONCE(ssp->srcu_ctrp,
1160 &ssp->sda->srcu_ctrs[!(ssp->srcu_ctrp - &ssp->sda->srcu_ctrs[0])]);
1196 static bool srcu_should_expedite(struct srcu_struct *ssp)
1204 check_init_srcu_struct(ssp);
1206 if (this_cpu_read(ssp->sda->srcu_reader_flavor) & SRCU_READ_FLAVOR_SLOWGP)
1209 sdp = raw_cpu_ptr(ssp->sda);
1225 tlast = READ_ONCE(ssp->srcu_sup->srcu_last_gp_end);
1231 curseq = rcu_seq_current(&ssp->srcu_sup->srcu_gp_seq);
1233 if (ULONG_CMP_LT(curseq, READ_ONCE(ssp->srcu_sup->srcu_gp_seq_needed)))
1236 if (curseq != rcu_seq_current(&ssp->srcu_sup->srcu_gp_seq))
1251 static unsigned long srcu_gp_start_if_needed(struct srcu_struct *ssp,
1263 check_init_srcu_struct(ssp);
1269 idx = __srcu_read_lock_nmisafe(ssp);
1270 ss_state = smp_load_acquire(&ssp->srcu_sup->srcu_size_state);
1272 sdp = per_cpu_ptr(ssp->sda, get_boot_cpu_id());
1274 sdp = raw_cpu_ptr(ssp->sda);
1314 s = rcu_seq_snap(&ssp->srcu_sup->srcu_gp_seq);
1317 rcu_seq_current(&ssp->srcu_sup->srcu_gp_seq));
1344 srcu_funnel_gp_start(ssp, sdp, s, do_norm);
1346 srcu_funnel_exp_start(ssp, sdp_mynode, s);
1347 __srcu_read_unlock_nmisafe(ssp, idx);
1379 static void __call_srcu(struct srcu_struct *ssp, struct rcu_head *rhp,
1389 (void)srcu_gp_start_if_needed(ssp, rhp, do_norm);
1394 * @ssp: srcu_struct in queue the callback
1413 void call_srcu(struct srcu_struct *ssp, struct rcu_head *rhp,
1416 __call_srcu(ssp, rhp, func, true);
1423 static void __synchronize_srcu(struct srcu_struct *ssp, bool do_norm)
1427 srcu_lock_sync(&ssp->dep_map);
1429 RCU_LOCKDEP_WARN(lockdep_is_held(ssp) ||
1438 check_init_srcu_struct(ssp);
1441 __call_srcu(ssp, &rcu.head, wakeme_after_rcu, do_norm);
1457 * @ssp: srcu_struct with which to synchronize.
1465 void synchronize_srcu_expedited(struct srcu_struct *ssp)
1467 __synchronize_srcu(ssp, rcu_gp_is_normal());
1473 * @ssp: srcu_struct with which to synchronize.
1477 * the index=!(ssp->srcu_ctrp - &ssp->sda->srcu_ctrs[0]) to drain to zero
1520 void synchronize_srcu(struct srcu_struct *ssp)
1522 if (srcu_should_expedite(ssp) || rcu_gp_is_expedited())
1523 synchronize_srcu_expedited(ssp);
1525 __synchronize_srcu(ssp, true);
1531 * @ssp: srcu_struct to provide cookie for.
1539 unsigned long get_state_synchronize_srcu(struct srcu_struct *ssp)
1544 return rcu_seq_snap(&ssp->srcu_sup->srcu_gp_seq);
1550 * @ssp: srcu_struct to provide cookie for.
1558 unsigned long start_poll_synchronize_srcu(struct srcu_struct *ssp)
1560 return srcu_gp_start_if_needed(ssp, NULL, true);
1566 * @ssp: srcu_struct to provide cookie for.
1589 bool poll_state_synchronize_srcu(struct srcu_struct *ssp, unsigned long cookie)
1592 !rcu_seq_done_exact(&ssp->srcu_sup->srcu_gp_seq, cookie))
1607 struct srcu_struct *ssp;
1611 ssp = sdp->ssp;
1612 if (atomic_dec_and_test(&ssp->srcu_sup->srcu_barrier_cpu_cnt))
1613 complete(&ssp->srcu_sup->srcu_barrier_completion);
1624 static void srcu_barrier_one_cpu(struct srcu_struct *ssp, struct srcu_data *sdp)
1627 atomic_inc(&ssp->srcu_sup->srcu_barrier_cpu_cnt);
1633 atomic_dec(&ssp->srcu_sup->srcu_barrier_cpu_cnt);
1640 * @ssp: srcu_struct on which to wait for in-flight callbacks.
1642 void srcu_barrier(struct srcu_struct *ssp)
1646 unsigned long s = rcu_seq_snap(&ssp->srcu_sup->srcu_barrier_seq);
1648 check_init_srcu_struct(ssp);
1649 mutex_lock(&ssp->srcu_sup->srcu_barrier_mutex);
1650 if (rcu_seq_done(&ssp->srcu_sup->srcu_barrier_seq, s)) {
1652 mutex_unlock(&ssp->srcu_sup->srcu_barrier_mutex);
1655 rcu_seq_start(&ssp->srcu_sup->srcu_barrier_seq);
1656 init_completion(&ssp->srcu_sup->srcu_barrier_completion);
1659 atomic_set(&ssp->srcu_sup->srcu_barrier_cpu_cnt, 1);
1661 idx = __srcu_read_lock_nmisafe(ssp);
1662 if (smp_load_acquire(&ssp->srcu_sup->srcu_size_state) < SRCU_SIZE_WAIT_BARRIER)
1663 srcu_barrier_one_cpu(ssp, per_cpu_ptr(ssp->sda, get_boot_cpu_id()));
1666 srcu_barrier_one_cpu(ssp, per_cpu_ptr(ssp->sda, cpu));
1667 __srcu_read_unlock_nmisafe(ssp, idx);
1670 if (atomic_dec_and_test(&ssp->srcu_sup->srcu_barrier_cpu_cnt))
1671 complete(&ssp->srcu_sup->srcu_barrier_completion);
1672 wait_for_completion(&ssp->srcu_sup->srcu_barrier_completion);
1674 rcu_seq_end(&ssp->srcu_sup->srcu_barrier_seq);
1675 mutex_unlock(&ssp->srcu_sup->srcu_barrier_mutex);
1681 * @ssp: srcu_struct on which to report batch completion.
1686 unsigned long srcu_batches_completed(struct srcu_struct *ssp)
1688 return READ_ONCE(ssp->srcu_sup->srcu_gp_seq);
1697 static void srcu_advance_state(struct srcu_struct *ssp)
1701 mutex_lock(&ssp->srcu_sup->srcu_gp_mutex);
1713 idx = rcu_seq_state(smp_load_acquire(&ssp->srcu_sup->srcu_gp_seq)); /* ^^^ */
1715 spin_lock_irq_rcu_node(ssp->srcu_sup);
1716 if (ULONG_CMP_GE(ssp->srcu_sup->srcu_gp_seq, ssp->srcu_sup->srcu_gp_seq_needed)) {
1717 WARN_ON_ONCE(rcu_seq_state(ssp->srcu_sup->srcu_gp_seq));
1718 spin_unlock_irq_rcu_node(ssp->srcu_sup);
1719 mutex_unlock(&ssp->srcu_sup->srcu_gp_mutex);
1722 idx = rcu_seq_state(READ_ONCE(ssp->srcu_sup->srcu_gp_seq));
1724 srcu_gp_start(ssp);
1725 spin_unlock_irq_rcu_node(ssp->srcu_sup);
1727 mutex_unlock(&ssp->srcu_sup->srcu_gp_mutex);
1732 if (rcu_seq_state(READ_ONCE(ssp->srcu_sup->srcu_gp_seq)) == SRCU_STATE_SCAN1) {
1733 idx = !(ssp->srcu_ctrp - &ssp->sda->srcu_ctrs[0]);
1734 if (!try_check_zero(ssp, idx, 1)) {
1735 mutex_unlock(&ssp->srcu_sup->srcu_gp_mutex);
1738 srcu_flip(ssp);
1739 spin_lock_irq_rcu_node(ssp->srcu_sup);
1740 rcu_seq_set_state(&ssp->srcu_sup->srcu_gp_seq, SRCU_STATE_SCAN2);
1741 ssp->srcu_sup->srcu_n_exp_nodelay = 0;
1742 spin_unlock_irq_rcu_node(ssp->srcu_sup);
1745 if (rcu_seq_state(READ_ONCE(ssp->srcu_sup->srcu_gp_seq)) == SRCU_STATE_SCAN2) {
1751 idx = !(ssp->srcu_ctrp - &ssp->sda->srcu_ctrs[0]);
1752 if (!try_check_zero(ssp, idx, 2)) {
1753 mutex_unlock(&ssp->srcu_sup->srcu_gp_mutex);
1756 ssp->srcu_sup->srcu_n_exp_nodelay = 0;
1757 srcu_gp_end(ssp); /* Releases ->srcu_gp_mutex. */
1774 struct srcu_struct *ssp;
1778 ssp = sdp->ssp;
1783 rcu_seq_current(&ssp->srcu_sup->srcu_gp_seq));
1828 static void srcu_reschedule(struct srcu_struct *ssp, unsigned long delay)
1832 spin_lock_irq_rcu_node(ssp->srcu_sup);
1833 if (ULONG_CMP_GE(ssp->srcu_sup->srcu_gp_seq, ssp->srcu_sup->srcu_gp_seq_needed)) {
1834 if (!WARN_ON_ONCE(rcu_seq_state(ssp->srcu_sup->srcu_gp_seq))) {
1838 } else if (!rcu_seq_state(ssp->srcu_sup->srcu_gp_seq)) {
1840 srcu_gp_start(ssp);
1842 spin_unlock_irq_rcu_node(ssp->srcu_sup);
1845 queue_delayed_work(rcu_gp_wq, &ssp->srcu_sup->work, delay);
1855 struct srcu_struct *ssp;
1859 ssp = sup->srcu_ssp;
1861 srcu_advance_state(ssp);
1862 spin_lock_irq_rcu_node(ssp->srcu_sup);
1863 curdelay = srcu_get_delay(ssp);
1864 spin_unlock_irq_rcu_node(ssp->srcu_sup);
1879 srcu_reschedule(ssp, curdelay);
1882 void srcutorture_get_gp_data(struct srcu_struct *ssp, int *flags,
1886 *gp_seq = rcu_seq_current(&ssp->srcu_sup->srcu_gp_seq);
1903 void srcu_torture_stats_print(struct srcu_struct *ssp, char *tt, char *tf)
1908 int ss_state = READ_ONCE(ssp->srcu_sup->srcu_size_state);
1911 idx = ssp->srcu_ctrp - &ssp->sda->srcu_ctrs[0];
1915 tt, tf, rcu_seq_current(&ssp->srcu_sup->srcu_gp_seq), ss_state,
1917 if (!ssp->sda) {
1928 sdp = per_cpu_ptr(ssp->sda, cpu);
1952 srcu_transition_to_big(ssp);
2008 struct srcu_struct *ssp;
2012 ssp = *(sspp++);
2013 ssp->sda = alloc_percpu(struct srcu_data);
2014 if (WARN_ON_ONCE(!ssp->sda))
2016 ssp->srcu_ctrp = &ssp->sda->srcu_ctrs[0];
2025 struct srcu_struct *ssp;
2029 ssp = *(sspp++);
2030 if (!rcu_seq_state(smp_load_acquire(&ssp->srcu_sup->srcu_gp_seq_needed)) &&
2031 !WARN_ON_ONCE(!ssp->srcu_sup->sda_is_static))
2032 cleanup_srcu_struct(ssp);
2033 if (!WARN_ON(srcu_readers_active(ssp)))
2034 free_percpu(ssp->sda);