#endif /* AFS_NOSTATS */
AFS_STATCNT(afs_GetDCache);
-
if (dcacheDisabled)
return NULL;
|| afs_freeDCList != NULLIDX)
break;
/* If we can't get space for 5 mins we give up and panic */
- if (++downDCount > 300)
+ if (++downDCount > 300) {
+#if defined(AFS_CACHE_BYPASS)
+ afs_warn("GetDCache calling osi_Panic: No space in five minutes.\n downDCount: %d\n aoffset: %d alen: %d\n", downDCount, aoffset, alen);
+#endif
osi_Panic("getdcache");
+ }
MReleaseWriteLock(&afs_xdcache);
/*
* Locks held: