afs_BozonLock(&avc->pvnLock, avc);
#endif
- if (afs_shuttingdown)
+ if (afs_shuttingdown) {
+#ifdef AFS_BOZONLOCK_ENV
+ afs_BozonUnlock(&avc->pvnLock, avc);
+#endif
+ AFS_DISCON_UNLOCK();
return EIO;
+ }
if (!(avc->f.states & CStatd)) {
if (!(code = afs_InitReq(&treq, acred))) {