On Tue, Jul 12, 2016 at 23:13:36 +0300, Sergey Fedorov wrote:
> From: Sergey Fedorov <[email protected]>
> It is naturally expected that some memory ordering should be provided
> around qht_insert(), qht_remove(), and qht_lookup(). Document these
> assumptions in the header file and put some comments in the source to
> denote how that memory ordering requirements are fulfilled.
I wouldn't put those comments in the source--seqlock callers should
know what they're doing, and what barriers seqlocks imply.
I'm OK with stating what the implied ordering is in the header
file, though.
Thanks,
Emilio