What are ck_queue.h guarantees?
Lev Serebryakov
lev at FreeBSD.org
Sun Oct 14 09:58:31 UTC 2018
Hello Kristof,
Sunday, October 14, 2018, 9:14:31 AM, you wrote:
>> But in all places at kernel I peeked, CK_XXXX macros are protected by
>> locks. Yes, even read ones.
> Note that the implementation of if_maddr_rlock() doesn’t actually take a
> lock. Instead it calls epoch_enter_preempt().
Oh, I've should look inside these functions before asking. Thank you for
pointing me out.
> I suspect the ‘lock’/‘unlock’ naming is mostly historical here: i.e. it
> used to be a real lock, and when it was replaced by the epoch-based
> approach the functions were not renamed.
Yep, and it is very misleading :-)
--
Best regards,
Lev mailto:lev at FreeBSD.org
More information about the freebsd-hackers
mailing list