RC_LOCKED
if (rp->rc_refcnt == 0 && !(rp->rc_flag & (RC_LOCKED | RC_INPROG)))
if ((rp->rc_flag & RC_LOCKED) != 0) {
rp->rc_flag |= RC_LOCKED;
if (rp->rc_refcnt == 0 && !(rp->rc_flag & RC_LOCKED))
KASSERT(rp->rc_flag & RC_LOCKED, ("nfsrvd_sentcache not locked"));
if ((rp->rc_flag & RC_LOCKED) != 0) {
rp->rc_flag |= RC_LOCKED;
while ((rp->rc_flag & RC_LOCKED) != 0) {
rp->rc_flag |= RC_LOCKED;
rp->rc_flag &= ~RC_LOCKED;
if (!(rp->rc_flag & (RC_INPROG|RC_LOCKED|RC_WANTED))
(RC_INPROG|RC_LOCKED|RC_WANTED))
(RC_INPROG|RC_LOCKED|RC_WANTED))