smr: Remove the return value from smr_wait()
This is supposed to be a blocking version of smr_poll(), so there's no need for a return value. No functional change intended. MFC after: 1 week
This commit is contained in:
parent
12b951082e
commit
75c53ae7e1
@ -64,7 +64,7 @@
|
||||
.Fo smr_synchronize
|
||||
.Fa "smr_t smr"
|
||||
.Fc
|
||||
.Ft bool
|
||||
.Ft void
|
||||
.Fo smr_wait
|
||||
.Fa "smr_t smr"
|
||||
.Fa "smr_seq_t goal"
|
||||
|
@ -579,6 +579,7 @@ smr_poll(smr_t smr, smr_seq_t goal, bool wait)
|
||||
*/
|
||||
atomic_thread_fence_acq();
|
||||
|
||||
KASSERT(success || !wait, ("%s: blocking poll failed", __func__));
|
||||
return (success);
|
||||
}
|
||||
|
||||
|
@ -241,11 +241,11 @@ void smr_destroy(smr_t smr);
|
||||
/*
|
||||
* Blocking wait for all readers to observe 'goal'.
|
||||
*/
|
||||
static inline bool
|
||||
static inline void
|
||||
smr_wait(smr_t smr, smr_seq_t goal)
|
||||
{
|
||||
|
||||
return (smr_poll(smr, goal, true));
|
||||
(void)smr_poll(smr, goal, true);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user