Displaying 2 results from an estimated 2 matches for "mutex_held".
2006 Jun 02
5
Read-write locks in libzpool
...it.
However, RW_LOCK_HELD() is being applied to "rwlp" instead
of "&rwlp->rw_lock", which could explain why it''s not failing.
Am I understanding this correctly?
Unfortunately POSIX threads don''t have an equivalent of rw_lock_held(),
rw_write_held(), mutex_held(), ..., so I really have to understand this in
order to somehow emulate their behavior.
Thanks!
2007 Sep 18
3
newbie question about a dbuf-arc eviction race
Hi,
Can a dbuf be in DB_CACHED state, db_holds == 0,
b_efunc != NULL while its db_buf is put on the
eviction list ? From an ASSERT in dbuf_do_evict(),
it appears that it can. If it can, I am wondering what
is preventing the following race
dbuf_hold_impl()
db = dbuf_find(dn, level, blkid);
...
if (db->db_buf && refcount_is_zero(&db->db_holds)) {