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:
Mark Johnston 2023-02-07 16:38:07 -05:00
parent 683853a924
commit cd133525fa
3 changed files with 4 additions and 3 deletions

View file

@ -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"

View file

@ -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);
}

View file

@ -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);
}
/*