2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
11 * --------------------- Required definitions ---------------------
13 #include <afsconfig.h>
14 #include "afs/param.h"
17 #include "afs/sysincludes.h" /*Standard vendor system headers */
18 #include "afsincludes.h" /*AFS-based standard headers */
19 #include "afs/afs_stats.h" /* statistics */
20 #include "afs/afs_cbqueue.h"
21 #include "afs/afs_osidnlc.h"
23 afs_uint32 afs_stampValue = 0;
29 * Send a truncation request to a FileServer.
35 * We're write-locked upon entry.
39 afs_StoreMini(struct vcache *avc, struct vrequest *areq)
42 struct AFSStoreStatus InStatus;
43 struct AFSFetchStatus OutStatus;
44 struct AFSVolSync tsync;
46 struct rx_call *tcall;
47 afs_size_t tlen, xlen = 0;
49 AFS_STATCNT(afs_StoreMini);
50 afs_Trace2(afs_iclSetp, CM_TRACE_STOREMINI, ICL_TYPE_POINTER, avc,
51 ICL_TYPE_INT32, avc->f.m.Length);
52 tlen = avc->f.m.Length;
53 if (avc->f.truncPos < tlen)
54 tlen = avc->f.truncPos;
55 avc->f.truncPos = AFS_NOTRUNC;
56 avc->f.states &= ~CExtendedFile;
59 tc = afs_Conn(&avc->f.fid, areq, SHARED_LOCK);
61 #ifdef AFS_64BIT_CLIENT
65 tcall = rx_NewCall(tc->id);
67 /* Set the client mod time since we always want the file
68 * to have the client's mod time and not the server's one
69 * (to avoid problems with make, etc.) It almost always
70 * works fine with standard afs because them server/client
71 * times are in sync and more importantly this storemini
72 * it's a special call that would typically be followed by
73 * the proper store-data or store-status calls.
75 InStatus.Mask = AFS_SETMODTIME;
76 InStatus.ClientModTime = avc->f.m.Date;
77 XSTATS_START_TIME(AFS_STATS_FS_RPCIDX_STOREDATA);
78 afs_Trace4(afs_iclSetp, CM_TRACE_STOREDATA64, ICL_TYPE_FID,
79 &avc->f.fid.Fid, ICL_TYPE_OFFSET,
80 ICL_HANDLE_OFFSET(avc->f.m.Length), ICL_TYPE_OFFSET,
81 ICL_HANDLE_OFFSET(xlen), ICL_TYPE_OFFSET,
82 ICL_HANDLE_OFFSET(tlen));
84 #ifdef AFS_64BIT_CLIENT
85 if (!afs_serverHasNo64Bit(tc)) {
87 StartRXAFS_StoreData64(tcall,
88 (struct AFSFid *)&avc->f.fid.Fid,
89 &InStatus, avc->f.m.Length,
90 (afs_size_t) 0, tlen);
95 if ((avc->f.m.Length > 0x7fffffff) ||
96 (tlen > 0x7fffffff) ||
97 ((0x7fffffff - tlen) < avc->f.m.Length)) {
102 StartRXAFS_StoreData(tcall,
103 (struct AFSFid *)&avc->f.fid.Fid,
104 &InStatus, l1, 0, l2);
106 #else /* AFS_64BIT_CLIENT */
108 StartRXAFS_StoreData(tcall, (struct AFSFid *)&avc->f.fid.Fid,
109 &InStatus, avc->f.m.Length, 0, tlen);
110 #endif /* AFS_64BIT_CLIENT */
112 code = EndRXAFS_StoreData(tcall, &OutStatus, &tsync);
114 #ifdef AFS_64BIT_CLIENT
117 code = rx_EndCall(tcall, code);
120 #ifdef AFS_64BIT_CLIENT
121 if (code == RXGEN_OPCODE && !afs_serverHasNo64Bit(tc)) {
122 afs_serverSetNo64Bit(tc);
125 #endif /* AFS_64BIT_CLIENT */
129 (tc, code, &avc->f.fid, areq, AFS_STATS_FS_RPCIDX_STOREDATA,
133 afs_ProcessFS(avc, &OutStatus, areq);
139 * afs_StoreAllSegments
142 * Stores all modified segments back to server
145 * avc : Pointer to vcache entry.
146 * areq : Pointer to request structure.
149 * Called with avc write-locked.
151 #if defined (AFS_HPUX_ENV)
152 int NCHUNKSATONCE = 3;
154 int NCHUNKSATONCE = 64;
160 afs_StoreAllSegments(struct vcache *avc, struct vrequest *areq,
166 afs_int32 origCBs, foreign = 0;
168 afs_hyper_t newDV, oldDV; /* DV when we start, and finish, respectively */
169 struct dcache **dcList;
170 unsigned int i, j, minj, moredata, high, off;
172 afs_size_t maxStoredLength; /* highest offset we've written to server. */
173 int safety, marineronce = 0;
175 AFS_STATCNT(afs_StoreAllSegments);
177 hset(oldDV, avc->f.m.DataVersion);
178 hset(newDV, avc->f.m.DataVersion);
179 hash = DVHash(&avc->f.fid);
180 foreign = (avc->f.states & CForeign);
181 dcList = (struct dcache **)osi_AllocLargeSpace(AFS_LRALLOCSIZ);
182 afs_Trace2(afs_iclSetp, CM_TRACE_STOREALL, ICL_TYPE_POINTER, avc,
183 ICL_TYPE_OFFSET, ICL_HANDLE_OFFSET(avc->f.m.Length));
184 #if !defined(AFS_AIX32_ENV) && !defined(AFS_SGI65_ENV)
185 /* In the aix vm implementation we need to do the vm_writep even
186 * on the memcache case since that's we adjust the file's size
187 * and finish flushing partial vm pages.
189 if ((cacheDiskType != AFS_FCACHE_TYPE_MEM) ||
190 (sync & AFS_VMSYNC_INVAL) || (sync & AFS_VMSYNC) ||
191 (sync & AFS_LASTSTORE))
192 #endif /* !AFS_AIX32_ENV && !AFS_SGI65_ENV */
194 /* If we're not diskless, reading a file may stress the VM
195 * system enough to cause a pageout, and this vnode would be
196 * locked when the pageout occurs. We can prevent this problem
197 * by making sure all dirty pages are already flushed. We don't
198 * do this when diskless because reading a diskless (i.e.
199 * memory-resident) chunk doesn't require using new VM, and we
200 * also don't want to dump more dirty data into a diskless cache,
201 * since they're smaller, and we might exceed its available
204 #if defined(AFS_SUN5_ENV)
205 if (sync & AFS_VMSYNC_INVAL) /* invalidate VM pages */
206 osi_VM_TryToSmush(avc, CRED(), 1);
209 osi_VM_StoreAllSegments(avc);
211 if (AFS_IS_DISCONNECTED && !AFS_IN_SYNC) {
212 /* This will probably make someone sad ... */
213 /*printf("Net down in afs_StoreSegments\n");*/
216 ConvertWToSLock(&avc->lock);
219 * Subsequent code expects a sorted list, and it expects all the
220 * chunks in the list to be contiguous, so we need a sort and a
221 * while loop in here, too - but this will work for a first pass...
222 * 92.10.05 - OK, there's a sort in here now. It's kind of a modified
223 * bin sort, I guess. Chunk numbers start with 0
225 * - Have to get a write lock on xdcache because GetDSlot might need it (if
226 * the chunk doesn't have a dcache struct).
227 * This seems like overkill in most cases.
228 * - I'm not sure that it's safe to do "index = .hvNextp", then unlock
229 * xdcache, then relock xdcache and try to use index. It is done
230 * a lot elsewhere in the CM, but I'm not buying that argument.
231 * - should be able to check IFDataMod without doing the GetDSlot (just
232 * hold afs_xdcache). That way, it's easy to do this without the
233 * writelock on afs_xdcache, and we save unneccessary disk
234 * operations. I don't think that works, 'cuz the next pointers
237 origCBs = afs_allCBs;
240 tlen = avc->f.m.Length;
244 memset(dcList, 0, NCHUNKSATONCE * sizeof(struct dcache *));
248 /* lock and start over from beginning of hash chain
249 * in order to avoid a race condition. */
250 ObtainWriteLock(&afs_xdcache, 284);
251 index = afs_dvhashTbl[hash];
253 for (j = 0; index != NULLIDX;) {
254 if ((afs_indexFlags[index] & IFDataMod)
255 && (afs_indexUnique[index] == avc->f.fid.Fid.Unique)) {
256 tdc = afs_GetDSlot(index, 0); /* refcount+1. */
257 ReleaseReadLock(&tdc->tlock);
258 if (!FidCmp(&tdc->f.fid, &avc->f.fid) && tdc->f.chunk >= minj) {
259 off = tdc->f.chunk - minj;
260 if (off < NCHUNKSATONCE) {
262 osi_Panic("dclist slot already in use!");
263 if (afs_mariner && !marineronce) {
264 /* first chunk only */
265 afs_MarinerLog("store$Storing", avc);
272 /* DCLOCKXXX: chunkBytes is protected by tdc->lock which we
273 * can't grab here, due to lock ordering with afs_xdcache.
274 * So, disable this shortcut for now. -- kolya 2001-10-13
276 /* shortcut: big win for little files */
277 /* tlen -= tdc->f.chunkBytes;
284 if (j == NCHUNKSATONCE)
291 index = afs_dvnextTbl[index];
293 ReleaseWriteLock(&afs_xdcache);
295 /* this guy writes chunks, puts back dcache structs, and bumps newDV */
296 /* "moredata" just says "there are more dirty chunks yet to come".
300 afs_CacheStoreVCache(dcList, avc, areq, sync,
301 minj, high, moredata,
302 &newDV, &maxStoredLength);
303 /* Release any zero-length dcache entries in our interval
304 * that we locked but didn't store back above.
306 for (j = 0; j <= high; j++) {
309 osi_Assert(tdc->f.chunkBytes == 0);
310 ReleaseSharedLock(&tdc->lock);
316 minj += NCHUNKSATONCE;
317 } while (!code && moredata);
319 UpgradeSToWLock(&avc->lock, 29);
321 /* send a trivial truncation store if did nothing else */
324 * Call StoreMini if we haven't written enough data to extend the
325 * file at the fileserver to the client's notion of the file length.
327 if ((avc->f.truncPos != AFS_NOTRUNC)
328 || ((avc->f.states & CExtendedFile)
329 && (maxStoredLength < avc->f.m.Length))) {
330 code = afs_StoreMini(avc, areq);
332 hadd32(newDV, 1); /* just bumped here, too */
334 avc->f.states &= ~CExtendedFile;
338 * Finally, turn off DWriting, turn on DFEntryMod,
339 * update f.versionNo.
340 * A lot of this could be integrated into the loop above
351 NCHUNKSATONCE * sizeof(struct dcache *));
353 /* overkill, but it gets the lock in case GetDSlot needs it */
354 ObtainWriteLock(&afs_xdcache, 285);
356 for (j = 0, safety = 0, index = afs_dvhashTbl[hash];
357 index != NULLIDX && safety < afs_cacheFiles + 2;) {
359 if (afs_indexUnique[index] == avc->f.fid.Fid.Unique) {
360 tdc = afs_GetDSlot(index, 0);
361 ReleaseReadLock(&tdc->tlock);
363 if (!FidCmp(&tdc->f.fid, &avc->f.fid)
364 && tdc->f.chunk >= minj) {
365 off = tdc->f.chunk - minj;
366 if (off < NCHUNKSATONCE) {
367 /* this is the file, and the correct chunk range */
368 if (j >= NCHUNKSATONCE)
370 ("Too many dcache entries in range\n");
375 if (j == NCHUNKSATONCE)
383 index = afs_dvnextTbl[index];
385 ReleaseWriteLock(&afs_xdcache);
387 for (i = 0; i < j; i++) {
388 /* Iterate over the dcache entries we collected above */
390 ObtainSharedLock(&tdc->lock, 677);
392 /* was code here to clear IFDataMod, but it should only be done
393 * in storedcache and storealldcache.
395 /* Only increase DV if we had up-to-date data to start with.
396 * Otherwise, we could be falsely upgrading an old chunk
397 * (that we never read) into one labelled with the current
398 * DV #. Also note that we check that no intervening stores
399 * occurred, otherwise we might mislabel cache information
400 * for a chunk that we didn't store this time
402 /* Don't update the version number if it's not yet set. */
403 if (!hsame(tdc->f.versionNo, h_unset)
404 && hcmp(tdc->f.versionNo, oldDV) >= 0) {
406 if ((!(afs_dvhack || foreign)
407 && hsame(avc->f.m.DataVersion, newDV))
408 || ((afs_dvhack || foreign)
409 && (origCBs == afs_allCBs))) {
410 /* no error, this is the DV */
412 UpgradeSToWLock(&tdc->lock, 678);
413 hset(tdc->f.versionNo, avc->f.m.DataVersion);
414 tdc->dflags |= DFEntryMod;
415 ConvertWToSLock(&tdc->lock);
419 ReleaseSharedLock(&tdc->lock);
423 minj += NCHUNKSATONCE;
430 * Invalidate chunks after an error for ccores files since
431 * afs_inactive won't be called for these and they won't be
432 * invalidated. Also discard data if it's a permanent error from the
435 if (areq->permWriteError || (avc->f.states & CCore)) {
436 afs_InvalidateAllSegments(avc);
439 afs_Trace3(afs_iclSetp, CM_TRACE_STOREALLDONE, ICL_TYPE_POINTER, avc,
440 ICL_TYPE_INT32, avc->f.m.Length, ICL_TYPE_INT32, code);
441 /* would like a Trace5, but it doesn't exist... */
442 afs_Trace3(afs_iclSetp, CM_TRACE_AVCLOCKER, ICL_TYPE_POINTER, avc,
443 ICL_TYPE_INT32, avc->lock.wait_states, ICL_TYPE_INT32,
444 avc->lock.excl_locked);
445 afs_Trace4(afs_iclSetp, CM_TRACE_AVCLOCKEE, ICL_TYPE_POINTER, avc,
446 ICL_TYPE_INT32, avc->lock.wait_states, ICL_TYPE_INT32,
447 avc->lock.readers_reading, ICL_TYPE_INT32,
448 avc->lock.num_waiting);
451 * Finally, if updated DataVersion matches newDV, we did all of the
452 * stores. If mapDV indicates that the page cache was flushed up
453 * to when we started the store, then we can relabel them as flushed
454 * as recently as newDV.
455 * Turn off CDirty bit because the stored data is now in sync with server.
457 if (code == 0 && hcmp(avc->mapDV, oldDV) >= 0) {
458 if ((!(afs_dvhack || foreign) && hsame(avc->f.m.DataVersion, newDV))
459 || ((afs_dvhack || foreign) && (origCBs == afs_allCBs))) {
460 hset(avc->mapDV, newDV);
461 avc->f.states &= ~CDirty;
464 osi_FreeLargeSpace(dcList);
466 /* If not the final write a temporary error is ok. */
467 if (code && !areq->permWriteError && !(sync & AFS_LASTSTORE))
472 } /*afs_StoreAllSegments (new 03/02/94) */
476 * afs_InvalidateAllSegments
479 * Invalidates all chunks for a given file
482 * avc : Pointer to vcache entry.
485 * For example, called after an error has been detected. Called
486 * with avc write-locked, and afs_xdcache unheld.
490 afs_InvalidateAllSegments(struct vcache *avc)
495 struct dcache **dcList;
496 int i, dcListMax, dcListCount;
498 AFS_STATCNT(afs_InvalidateAllSegments);
499 afs_Trace2(afs_iclSetp, CM_TRACE_INVALL, ICL_TYPE_POINTER, avc,
500 ICL_TYPE_OFFSET, ICL_HANDLE_OFFSET(avc->f.m.Length));
501 hash = DVHash(&avc->f.fid);
502 avc->f.truncPos = AFS_NOTRUNC; /* don't truncate later */
503 avc->f.states &= ~CExtendedFile; /* not any more */
504 ObtainWriteLock(&afs_xcbhash, 459);
505 afs_DequeueCallback(avc);
506 avc->f.states &= ~(CStatd | CDirty); /* mark status information as bad, too */
507 ReleaseWriteLock(&afs_xcbhash);
508 if (avc->f.fid.Fid.Vnode & 1 || (vType(avc) == VDIR))
509 osi_dnlc_purgedp(avc);
510 /* Blow away pages; for now, only for Solaris */
511 #if (defined(AFS_SUN5_ENV))
512 if (WriteLocked(&avc->lock))
513 osi_ReleaseVM(avc, (afs_ucred_t *)0);
516 * Block out others from screwing with this table; is a read lock
519 ObtainWriteLock(&afs_xdcache, 286);
522 for (index = afs_dvhashTbl[hash]; index != NULLIDX;) {
523 if (afs_indexUnique[index] == avc->f.fid.Fid.Unique) {
524 tdc = afs_GetDSlot(index, 0);
525 ReleaseReadLock(&tdc->tlock);
526 if (!FidCmp(&tdc->f.fid, &avc->f.fid))
530 index = afs_dvnextTbl[index];
533 dcList = osi_Alloc(dcListMax * sizeof(struct dcache *));
536 for (index = afs_dvhashTbl[hash]; index != NULLIDX;) {
537 if (afs_indexUnique[index] == avc->f.fid.Fid.Unique) {
538 tdc = afs_GetDSlot(index, 0);
539 ReleaseReadLock(&tdc->tlock);
540 if (!FidCmp(&tdc->f.fid, &avc->f.fid)) {
541 /* same file? we'll zap it */
542 if (afs_indexFlags[index] & IFDataMod) {
543 afs_stats_cmperf.cacheCurrDirtyChunks--;
544 /* don't write it back */
545 afs_indexFlags[index] &= ~IFDataMod;
547 afs_indexFlags[index] &= ~IFAnyPages;
548 if (dcListCount < dcListMax)
549 dcList[dcListCount++] = tdc;
556 index = afs_dvnextTbl[index];
558 ReleaseWriteLock(&afs_xdcache);
560 for (i = 0; i < dcListCount; i++) {
563 ObtainWriteLock(&tdc->lock, 679);
565 if (vType(avc) == VDIR)
567 ReleaseWriteLock(&tdc->lock);
571 osi_Free(dcList, dcListMax * sizeof(struct dcache *));
578 * Extend a cache file
580 * \param avc pointer to vcache to extend data for
581 * \param alen Length to extend file to
584 * \note avc must be write locked. May release and reobtain avc and GLOCK
587 afs_ExtendSegments(struct vcache *avc, afs_size_t alen, struct vrequest *areq)
589 afs_size_t offset, toAdd;
590 struct osi_file *tfile;
595 zeros = afs_osi_Alloc(AFS_PAGESIZE);
598 memset(zeros, 0, AFS_PAGESIZE);
600 while (avc->f.m.Length < alen) {
601 tdc = afs_ObtainDCacheForWriting(avc, avc->f.m.Length, alen - avc->f.m.Length, areq, 0);
607 toAdd = alen - avc->f.m.Length;
609 offset = avc->f.m.Length - AFS_CHUNKTOBASE(tdc->f.chunk);
610 if (offset + toAdd > AFS_CHUNKTOSIZE(tdc->f.chunk)) {
611 toAdd = AFS_CHUNKTOSIZE(tdc->f.chunk) - offset;
613 tfile = afs_CFileOpen(&tdc->f.inode);
614 while(tdc->validPos < avc->f.m.Length + toAdd) {
617 towrite = (avc->f.m.Length + toAdd) - tdc->validPos;
618 if (towrite > AFS_PAGESIZE) towrite = AFS_PAGESIZE;
620 code = afs_CFileWrite(tfile,
621 tdc->validPos - AFS_CHUNKTOBASE(tdc->f.chunk),
623 tdc->validPos += towrite;
625 afs_CFileClose(tfile);
626 afs_AdjustSize(tdc, offset + toAdd );
627 avc->f.m.Length += toAdd;
628 ReleaseWriteLock(&tdc->lock);
632 afs_osi_Free(zeros, AFS_PAGESIZE);
637 * afs_TruncateAllSegments
640 * Truncate a cache file.
643 * avc : Ptr to vcache entry to truncate.
644 * alen : Number of bytes to make the file.
645 * areq : Ptr to request structure.
648 * Called with avc write-locked; in VFS40 systems, pvnLock is also
652 afs_TruncateAllSegments(struct vcache *avc, afs_size_t alen,
653 struct vrequest *areq, afs_ucred_t *acred)
661 struct dcache **tdcArray;
663 AFS_STATCNT(afs_TruncateAllSegments);
664 avc->f.m.Date = osi_Time();
665 afs_Trace3(afs_iclSetp, CM_TRACE_TRUNCALL, ICL_TYPE_POINTER, avc,
666 ICL_TYPE_OFFSET, ICL_HANDLE_OFFSET(avc->f.m.Length),
667 ICL_TYPE_OFFSET, ICL_HANDLE_OFFSET(alen));
668 if (alen >= avc->f.m.Length) {
670 * Special speedup since Sun's vm extends the file this way;
671 * we've never written to the file thus we can just set the new
672 * length and avoid the needless calls below.
673 * Also used for ftruncate calls which can extend the file.
674 * To completely minimize the possible extra StoreMini RPC, we really
675 * should keep the ExtendedPos as well and clear this flag if we
676 * truncate below that value before we store the file back.
678 avc->f.states |= CExtendedFile;
679 avc->f.m.Length = alen;
682 #if (defined(AFS_SUN5_ENV))
684 /* Zero unused portion of last page */
685 osi_VM_PreTruncate(avc, alen, acred);
689 #if (defined(AFS_SUN5_ENV))
690 ObtainWriteLock(&avc->vlock, 546);
691 avc->activeV++; /* Block new getpages */
692 ReleaseWriteLock(&avc->vlock);
695 ReleaseWriteLock(&avc->lock);
698 /* Flush pages beyond end-of-file. */
699 osi_VM_Truncate(avc, alen, acred);
702 ObtainWriteLock(&avc->lock, 79);
704 avc->f.m.Length = alen;
706 if (alen < avc->f.truncPos)
707 avc->f.truncPos = alen;
708 code = DVHash(&avc->f.fid);
710 /* block out others from screwing with this table */
711 ObtainWriteLock(&afs_xdcache, 287);
714 for (index = afs_dvhashTbl[code]; index != NULLIDX;) {
715 if (afs_indexUnique[index] == avc->f.fid.Fid.Unique) {
716 tdc = afs_GetDSlot(index, 0);
717 ReleaseReadLock(&tdc->tlock);
718 if (!FidCmp(&tdc->f.fid, &avc->f.fid))
722 index = afs_dvnextTbl[index];
725 /* Now allocate space where we can save those dcache entries, and
726 * do a second pass over them.. Since we're holding xdcache, it
727 * shouldn't be changing.
729 tdcArray = osi_Alloc(dcCount * sizeof(struct dcache *));
732 for (index = afs_dvhashTbl[code]; index != NULLIDX;) {
733 if (afs_indexUnique[index] == avc->f.fid.Fid.Unique) {
734 tdc = afs_GetDSlot(index, 0);
735 ReleaseReadLock(&tdc->tlock);
736 if (!FidCmp(&tdc->f.fid, &avc->f.fid)) {
737 /* same file, and modified, we'll store it back */
738 if (dcPos < dcCount) {
739 tdcArray[dcPos++] = tdc;
747 index = afs_dvnextTbl[index];
750 ReleaseWriteLock(&afs_xdcache);
752 /* Now we loop over the array of dcache entries and truncate them */
753 for (index = 0; index < dcPos; index++) {
754 struct osi_file *tfile;
756 tdc = tdcArray[index];
758 newSize = alen - AFS_CHUNKTOBASE(tdc->f.chunk);
761 ObtainSharedLock(&tdc->lock, 672);
762 if (newSize < tdc->f.chunkBytes && newSize < MAX_AFS_UINT32) {
763 UpgradeSToWLock(&tdc->lock, 673);
764 tfile = afs_CFileOpen(&tdc->f.inode);
765 afs_CFileTruncate(tfile, (afs_int32)newSize);
766 afs_CFileClose(tfile);
767 afs_AdjustSize(tdc, (afs_int32)newSize);
768 if (alen < tdc->validPos) {
769 if (alen < AFS_CHUNKTOBASE(tdc->f.chunk))
772 tdc->validPos = alen;
774 ConvertWToSLock(&tdc->lock);
776 ReleaseSharedLock(&tdc->lock);
780 osi_Free(tdcArray, dcCount * sizeof(struct dcache *));
782 #if (defined(AFS_SUN5_ENV))
783 ObtainWriteLock(&avc->vlock, 547);
784 if (--avc->activeV == 0 && (avc->vstates & VRevokeWait)) {
785 avc->vstates &= ~VRevokeWait;
786 afs_osi_Wakeup((char *)&avc->vstates);
788 ReleaseWriteLock(&avc->vlock);