userret: assert td_lk_slocks == 0

Andriy Gapon avg at FreeBSD.org
Mon Aug 12 09:14:31 UTC 2019


I am trying to debug a leak of a shared vnode lock and I noticed that
there is no check for td_lk_slocks in userret.  There are checks for
td_rw_rlocks and td_sx_slocks.  I wonder if there is any valid scenario
where a thread is allowed to retain a shared lock manager lock across
system calls.

Thanks!
-- 
Andriy Gapon


More information about the freebsd-current mailing list