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:
Doug Rabson 2009-06-04 08:13:51 +00:00
parent df99b9c9ac
commit d7e0637111
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193432

View file

@ -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