diff options
author | Trond Myklebust <trondmy@gmail.com> | 2020-03-01 18:21:42 -0500 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2020-03-16 12:04:33 -0400 |
commit | 65286b883c6de6b30928c837c47c167e82bde0b2 (patch) | |
tree | d40b431adb770b253c21305c9680ed3456b22ffe /include | |
parent | 6a30e47fa0c358cc84002e6a429f5f229e0b7b07 (diff) | |
download | linux-stable-65286b883c6de6b30928c837c47c167e82bde0b2.tar.gz linux-stable-65286b883c6de6b30928c837c47c167e82bde0b2.tar.bz2 linux-stable-65286b883c6de6b30928c837c47c167e82bde0b2.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/cache.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h index 0f64de7caa39..656882a50991 100644 --- a/include/linux/sunrpc/cache.h +++ b/include/linux/sunrpc/cache.h @@ -179,6 +179,9 @@ sunrpc_cache_update(struct cache_detail *detail, extern int sunrpc_cache_pipe_upcall(struct cache_detail *detail, struct cache_head *h); +extern int +sunrpc_cache_pipe_upcall_timeout(struct cache_detail *detail, + struct cache_head *h); extern void cache_clean_deferred(void *owner); |