Commit r345200 (new ARC reclamation threads) looks suspicious to me.

Lev Serebryakov lev at FreeBSD.org
Mon May 20 17:14:40 UTC 2019


On 20.05.2019 19:10, Ian Lepore wrote:

> The arc_adjust_needed variable is the gating condition associated with
> a condition variable and lock.  It is only read or changed while
> holding a lock, and the acquiring and releasing of that lock provides
> the needed memory barriers.  In this case, the association with the
> condition variable and lock is somewhat obscured by the way the zthread
> timer stuff works.  The arc_adjust_cb_check() function is called from
> line 193 of contrib/opensolaris/uts/common/fs/zfs/zthr.c, and that's
> where you'll find the code that makes it clear this is an idiomatic
> condition variable pattern.
 Oh, I see now. Right. Thank you for explanation.

-- 
// Lev Serebryakov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20190520/21e29960/attachment.sig>


More information about the freebsd-hackers mailing list