Bug 208999 - NFS server occasionally spontaneously reboots when client mounts exported directory
Summary: NFS server occasionally spontaneously reboots when client mounts exported dir...
Status: RESOLVED DUPLICATE of bug 208807
Alias: None
Product: File System
Classification: Unclassified
Component: NFS (show other bugs)
Hardware: All Linux
: P1 high
Assignee: bfields
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-23 07:27 UTC by Robert Dinse
Modified: 2020-08-26 09:34 UTC (History)
1 user (show)

See Also:
Kernel Version: 5.8
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Robert Dinse 2020-08-23 07:27:59 UTC
There is a duplicate but it seems to have been deleted from Bugzilla.
I was provided with this patch:

diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 30818b006530..f0a607c795ef 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -4597,6 +4597,8 @@ static bool nfsd_breaker_owns_lease(struct file_lock
*fl)
       if (!i_am_nfsd())
               return NULL;
       rqst = kthread_data(current);
+       if (!rqst->rq_lease_breaker)
+               return NULL;
       clp = *(rqst->rq_lease_breaker);
       return dl->dl_stid.sc_client == clp;
}

     And it resolved the problem BUT as of 5.8.3 it is STILL not in the kernel.
This problem only gets triggered with a mix of NFSv3 and NFSv4 clients.
Comment 1 bfields 2020-08-25 19:37:53 UTC
Chuck has the patch; it will get there, don't worry.

*** This bug has been marked as a duplicate of bug 208807 ***

Note You need to log in before you can comment on or make changes to this bug.