nfsd: export upcalls must not return ESTALE when mountd is down
If the rpc.mountd daemon goes down, then that should not cause all exports to start failing with ESTALE errors. Let's explicitly distinguish between the cache upcall cases that need to time out, and those that do not. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:

committed by
Chuck Lever

parent
6a30e47fa0
commit
65286b883c
@@ -152,12 +152,13 @@ static int nfs_dns_upcall(struct cache_detail *cd,
|
||||
struct cache_head *ch)
|
||||
{
|
||||
struct nfs_dns_ent *key = container_of(ch, struct nfs_dns_ent, h);
|
||||
int ret;
|
||||
|
||||
ret = nfs_cache_upcall(cd, key->hostname);
|
||||
if (ret)
|
||||
ret = sunrpc_cache_pipe_upcall(cd, ch);
|
||||
return ret;
|
||||
if (test_and_set_bit(CACHE_PENDING, &ch->flags))
|
||||
return 0;
|
||||
if (!nfs_cache_upcall(cd, key->hostname))
|
||||
return 0;
|
||||
clear_bit(CACHE_PENDING, &ch->flags);
|
||||
return sunrpc_cache_pipe_upcall_timeout(cd, ch);
|
||||
}
|
||||
|
||||
static int nfs_dns_match(struct cache_head *ca,
|
||||
|
Reference in New Issue
Block a user