cond_synchronize_rcu(9)

cond_synchronize_rcu9

Conditionally wait for an rcu grace period

Usage

void cond_synchronize_rcu(unsigned long oldstate);

Arguments

oldstate

return value from earlier call to get_state_synchronize_rcu

Overview

If a full RCU grace period has elapsed since the earlier call to get_state_synchronize_rcu, just return. Otherwise, invoke synchronize_rcu to wait for a full grace period.

Yes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for one additional grace period should be just fine.

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.