Commit 5eb098e2 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] kNFSd: Reduce timeout when waiting for idmapper userspace daemon.

From: NeilBrown <neilb@cse.unsw.edu.au>

From: "J. Bruce Fields" <bfields@fieldses.org>

1 second should be plenty of time; if we're going to take longer than that
it's probably better just to return NFS4ERR_DELAY and let the client retry
anyway.
parent 74d88830
...@@ -470,7 +470,7 @@ idmap_lookup_wait(struct idmap_defer_req *mdr, struct svc_rqst *rqstp, ...@@ -470,7 +470,7 @@ idmap_lookup_wait(struct idmap_defer_req *mdr, struct svc_rqst *rqstp,
if (2 * threads_waiting > rqstp->rq_server->sv_nrthreads) if (2 * threads_waiting > rqstp->rq_server->sv_nrthreads)
goto out; goto out;
threads_waiting++; threads_waiting++;
schedule_timeout(10 * HZ); schedule_timeout(1 * HZ);
threads_waiting--; threads_waiting--;
} }
out: out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment