summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-11-16 15:18:17 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2020-12-07 11:47:03 -0500
commit538cccb24a81bbd7bb9168fda884cb667b873ace (patch)
tree87358b2f89c6374b097b74be0f6d292c97814a28 /kernel
parentb6f11afa6ac2dac3eceb728798fa0bc9d8f6e6ea (diff)
srcu: Export new SRCU poll interface
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rcu/srcutiny.c3
-rw-r--r--kernel/rcu/srcutree.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/kernel/rcu/srcutiny.c b/kernel/rcu/srcutiny.c
index 1cbff26bd67a..26a5122b9923 100644
--- a/kernel/rcu/srcutiny.c
+++ b/kernel/rcu/srcutiny.c
@@ -209,6 +209,7 @@ unsigned long get_state_synchronize_srcu(struct srcu_struct *ssp)
barrier();
return ret & USHRT_MAX;
}
+EXPORT_SYMBOL_GPL(get_state_synchronize_srcu);
/*
* start_poll_synchronize_srcu - Provide cookie and start grace period
@@ -224,6 +225,7 @@ unsigned long start_poll_synchronize_srcu(struct srcu_struct *ssp)
srcu_gp_start_if_needed(ssp);
return ret;
}
+EXPORT_SYMBOL_GPL(start_poll_synchronize_srcu);
/*
* poll_state_synchronize_srcu - Has cookie's grace period ended?
@@ -235,6 +237,7 @@ bool poll_state_synchronize_srcu(struct srcu_struct *ssp, unsigned long cookie)
barrier();
return ret;
}
+EXPORT_SYMBOL_GPL(poll_state_synchronize_srcu);
/* Lockdep diagnostics. */
void __init rcu_scheduler_starting(void)
diff --git a/kernel/rcu/srcutree.c b/kernel/rcu/srcutree.c
index 39677ab288ca..1256de299a96 100644
--- a/kernel/rcu/srcutree.c
+++ b/kernel/rcu/srcutree.c
@@ -1042,6 +1042,7 @@ unsigned long get_state_synchronize_srcu(struct srcu_struct *ssp)
smp_mb();
return rcu_seq_snap(&ssp->srcu_gp_seq);
}
+EXPORT_SYMBOL_GPL(get_state_synchronize_srcu);
/**
* start_poll_synchronize_srcu - Provide cookie and start grace period
@@ -1057,6 +1058,7 @@ unsigned long start_poll_synchronize_srcu(struct srcu_struct *ssp)
{
return srcu_gp_start_if_needed(ssp, NULL, true);
}
+EXPORT_SYMBOL_GPL(start_poll_synchronize_srcu);
/**
* poll_state_synchronize_srcu - Has cookie's grace period ended?
@@ -1075,6 +1077,7 @@ bool poll_state_synchronize_srcu(struct srcu_struct *ssp, unsigned long cookie)
smp_mb(); // ^^^
return true;
}
+EXPORT_SYMBOL_GPL(poll_state_synchronize_srcu);
/*
* Callback function for srcu_barrier() use.