Lines Matching refs:sentinel
98 void *sentinel;
103 * The sentinel is used to detect when another operation like
105 * It is guaranteed that is_uncached_acl(sentinel) is true.
115 sentinel = uncached_acl_sentinel(current);
119 * If the ACL isn't being read yet, set our sentinel. Otherwise, the
121 * sentinel will not be set; another task will update the cache. We
126 if (cmpxchg(p, ACL_NOT_CACHED, sentinel) != ACL_NOT_CACHED)
145 * Remove our sentinel so that we don't block future attempts
148 cmpxchg(p, sentinel, ACL_NOT_CACHED);
153 * Cache the result, but only if our sentinel is still in place.
156 if (unlikely(cmpxchg(p, sentinel, acl) != sentinel))