tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD vs Solaris condvar semantics

On Sun, Oct 14, 2012 at 07:20:02AM +0000, Taylor R Campbell wrote:
> I'm working on fixing ZFS locking, and I ran into a diference between
> NetBSD's and Solaris's interpretation of condvars.
> In Solaris, it seems to be kosher to do
>    cv_broadcast(cv);
>    cv_destroy(cv);

I like this, though I'm not sure how typical an example it is, as I
rarely have seen condvars allocated all on their own, and once you have
it embedded in some other item, you can not avoid the reference
counting anyway.

In the zfs code, where do they store the mutex needed for cv_wait?


Home | Main Index | Thread Index | Old Index