Skip to content

Commit 4aa5e00

Browse files
J. Bruce Fieldschucklever
authored andcommitted
Revert "nfsd4: remove check_conflicting_opens warning"
This reverts commit 50747dd "nfsd4: remove check_conflicting_opens warning", as a prerequisite for reverting 94415b0, which has a serious bug. Cc: stable@vger.kernel.org Signed-off-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent 0ddc942 commit 4aa5e00

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/nfsd/nfs4state.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4952,6 +4952,7 @@ static int nfsd4_check_conflicting_opens(struct nfs4_client *clp,
49524952
writes--;
49534953
if (fp->fi_fds[O_RDWR])
49544954
writes--;
4955+
WARN_ON_ONCE(writes < 0);
49554956
if (writes > 0)
49564957
return -EAGAIN;
49574958
spin_lock(&fp->fi_lock);

0 commit comments

Comments
 (0)