nfsd4: remove check_conflicting_opens warning
There are actually rare races where this is possible (e.g. if a new open intervenes between the read of i_writecount and the fi_fds). Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
ae3c57b5ca
commit
50747dd5e4
@ -4955,7 +4955,6 @@ static int nfsd4_check_conflicting_opens(struct nfs4_client *clp,
|
|||||||
writes--;
|
writes--;
|
||||||
if (fp->fi_fds[O_RDWR])
|
if (fp->fi_fds[O_RDWR])
|
||||||
writes--;
|
writes--;
|
||||||
WARN_ON_ONCE(writes < 0);
|
|
||||||
if (writes > 0)
|
if (writes > 0)
|
||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
spin_lock(&fp->fi_lock);
|
spin_lock(&fp->fi_lock);
|
||||||
|
Loading…
Reference in New Issue
Block a user