diff options
-rw-r--r-- | sys/nfs4client/nfs4_vnops.c | 4 | ||||
-rw-r--r-- | sys/nfsclient/nfs_vnops.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/nfs4client/nfs4_vnops.c b/sys/nfs4client/nfs4_vnops.c index 276cb1a..bd0cfb1 100644 --- a/sys/nfs4client/nfs4_vnops.c +++ b/sys/nfs4client/nfs4_vnops.c @@ -2693,8 +2693,10 @@ loop: BO_MTX(bo), "nfsfsync", slpflag, slptimeo); if (error == 0) panic("nfs4_fsync: inconsistent lock"); - if (error == ENOLCK) + if (error == ENOLCK) { + error = 0; goto loop; + } if (nfs4_sigintr(nmp, NULL, td)) { error = EINTR; goto done; diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c index 8b4b1e1..524c564 100644 --- a/sys/nfsclient/nfs_vnops.c +++ b/sys/nfsclient/nfs_vnops.c @@ -2941,8 +2941,10 @@ loop: BUF_UNLOCK(bp); goto loop; } - if (error == ENOLCK) + if (error == ENOLCK) { + error = 0; goto loop; + } if (nfs_sigintr(nmp, NULL, td)) { error = EINTR; goto done; |