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 committed by Oscar Zhao
parent 12b951082e
commit 75c53ae7e1
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);
}
/*