On 2019-08-18 13:43, Jeff Roberson wrote:
Author: jeff
Date: Sun Aug 18 11:43:58 2019
New Revision: 351188
URL: https://svnweb.freebsd.org/changeset/base/351188

Log:
   Add a blocking wait bit to refcount.  This allows refs to be used as a simple
   barrier.
Reviewed by: markj, kib
   Discussed with:      jhb
   Sponsored by:        Netflix
   Differential Revision:       https://reviews.freebsd.org/D21254

Modified:
   head/sys/kern/kern_synch.c
   head/sys/sys/refcount.h


Hi,

I would like to decouple the wait/wakeup logic from the release function, if possible. The main objection here is that we are woken up before any destructor is executed. Also this function is not Giant safe and does neither assert that it can sleep.

--HPS
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to