mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
dafs-optimize-shutdown-20071112
optimize shutdown case as is done elsewhere, for dafs.
This commit is contained in:
parent
f2bff0e675
commit
cd8311641f
@ -3328,6 +3328,16 @@ CheckHost_r(register struct host *host, int held, char *dummy)
|
|||||||
struct rx_connection *cb_conn = NULL;
|
struct rx_connection *cb_conn = NULL;
|
||||||
int code;
|
int code;
|
||||||
|
|
||||||
|
#ifdef AFS_DEMAND_ATTACH_FS
|
||||||
|
/* kill the checkhost lwp ASAP during shutdown */
|
||||||
|
FS_STATE_RDLOCK;
|
||||||
|
if (fs_state.mode == FS_MODE_SHUTDOWN) {
|
||||||
|
FS_STATE_UNLOCK;
|
||||||
|
return H_ENUMERATE_BAIL(held);
|
||||||
|
}
|
||||||
|
FS_STATE_UNLOCK;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Host is held by h_Enumerate_r */
|
/* Host is held by h_Enumerate_r */
|
||||||
for (client = host->FirstClient; client; client = client->next) {
|
for (client = host->FirstClient; client; client = client->next) {
|
||||||
if (client->refCount == 0 && client->LastCall < clientdeletetime) {
|
if (client->refCount == 0 && client->LastCall < clientdeletetime) {
|
||||||
|
Loading…
Reference in New Issue
Block a user