From: claudio Date: Tue, 31 Aug 2021 15:31:28 +0000 (+0000) Subject: Swap lock flags so that LK_EXCLUSIVE is first like in all other places. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fb86feb33c3b9e5abe6fb06d91693c7ba3a67680;p=openbsd Swap lock flags so that LK_EXCLUSIVE is first like in all other places. --- diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 433ba0030c6..c752dd99e9e 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.305 2021/04/28 09:53:53 claudio Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.306 2021/08/31 15:31:28 claudio Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -1026,7 +1026,7 @@ vclean(struct vnode *vp, int flags, struct proc *p) * For active vnodes, it ensures that no other activity can * occur while the underlying object is being cleaned out. */ - VOP_LOCK(vp, LK_DRAIN | LK_EXCLUSIVE); + VOP_LOCK(vp, LK_EXCLUSIVE | LK_DRAIN); /* * Clean out any VM data associated with the vnode.