Skip to content

Commit

Permalink
Don't use LK_RETRY as we need an active vnode here.
Browse files Browse the repository at this point in the history
  • Loading branch information
hannken authored and hannken committed Jul 8, 2022
1 parent ba6f7f8 commit cc261bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sys/miscfs/overlay/overlay_vfsops.c
@@ -1,4 +1,4 @@
/* $NetBSD: overlay_vfsops.c,v 1.71 2020/04/13 19:23:19 ad Exp $ */
/* $NetBSD: overlay_vfsops.c,v 1.72 2022/07/08 07:43:48 hannken Exp $ */

/*
* Copyright (c) 1999, 2000 National Aeronautics & Space Administration
Expand Down Expand Up @@ -74,7 +74,7 @@
*/

#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: overlay_vfsops.c,v 1.71 2020/04/13 19:23:19 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: overlay_vfsops.c,v 1.72 2022/07/08 07:43:48 hannken Exp $");

#include <sys/param.h>
#include <sys/systm.h>
Expand Down Expand Up @@ -136,7 +136,7 @@ ov_mount(struct mount *mp, const char *path, void *data, size_t *data_len)
*/
lowerrootvp = mp->mnt_vnodecovered;
vref(lowerrootvp);
if ((error = vn_lock(lowerrootvp, LK_EXCLUSIVE | LK_RETRY))) {
if ((error = vn_lock(lowerrootvp, LK_EXCLUSIVE))) {
vrele(lowerrootvp);
return (error);
}
Expand Down

0 comments on commit cc261bb

Please sign in to comment.