mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 21:45:45 +02:00
Revert "nfsd4: remove check_conflicting_opens warning"
commit4aa5e00203upstream. This reverts commit50747dd5e4"nfsd4: remove check_conflicting_opens warning", as a prerequisite for reverting94415b06eb, 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d955f13ea2
commit
894ecf0cb5
|
|
@ -4957,6 +4957,7 @@ static int nfsd4_check_conflicting_opens(struct nfs4_client *clp,
|
|||
writes--;
|
||||
if (fp->fi_fds[O_RDWR])
|
||||
writes--;
|
||||
WARN_ON_ONCE(writes < 0);
|
||||
if (writes > 0)
|
||||
return -EAGAIN;
|
||||
spin_lock(&fp->fi_lock);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user