mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
windows-sleep-when-out-of-buffers-20061212
When there are no free buffers, don't loop continuously. Sleep so that the other threads that are holding the buffers can grab the global buffer lock and release them.
This commit is contained in:
parent
0919636307
commit
f126802236
@ -862,6 +862,7 @@ long buf_GetNewLocked(struct cm_scache *scp, osi_hyper_t *offsetp, cm_buf_t **bu
|
||||
return 0;
|
||||
} /* for all buffers in lru queue */
|
||||
lock_ReleaseWrite(&buf_globalLock);
|
||||
Sleep(100); /* give some time for a buffer to be freed */
|
||||
} /* while loop over everything */
|
||||
/* not reached */
|
||||
} /* the proc */
|
||||
|
Loading…
Reference in New Issue
Block a user