+ if (!UC_CACHE_IS_ACQUIRING(entry)) {
+ if (UC_CACHE_IS_VALID(entry)) {
+ /* This should not happen, just give a warning
+ * at this moment.
+ */
+ CWARN("entry %p(key "LPU64", ac %ld, ex %ld): "
+ "already valid???\n", entry, entry->ue_key,
+ entry->ue_acquire_expire, entry->ue_expire);
+ GOTO(out, rc = 0);
+ }
+
+ CWARN("stale entry %p: cur %lu, key "LPU64", ref %d, "
+ "fl %u, ac %ld, ex %ld\n",
+ entry, get_seconds(), entry->ue_key,
+ atomic_read(&entry->ue_refcount), entry->ue_flags,
+ entry->ue_acquire_expire, entry->ue_expire);
+ GOTO(out, rc = -EINVAL);
+ }
+