Don't panic in nlm_record_lock if we get ENOENT from lf_advlockasync. This
is likely to be because the file was just removed and in our context this is harmless.
This commit is contained in:
parent
df99b9c9ac
commit
d7e0637111
@ -716,8 +716,8 @@ nlm_record_lock(struct vnode *vp, int op, struct flock *fl,
|
||||
newfl.l_sysid = NLM_SYSID_CLIENT | sysid;
|
||||
|
||||
error = lf_advlockasync(&a, &vp->v_lockf, size);
|
||||
KASSERT(error == 0, ("Failed to register NFS lock locally - error=%d",
|
||||
error));
|
||||
KASSERT(error == 0 || errno == ENOENT,
|
||||
("Failed to register NFS lock locally - error=%d", error));
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
x
Reference in New Issue
Block a user