artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddc4c96
)
use rw_status instead of interpreting RWL_OWNER to see if a lock is busy.
author
dlg
<dlg@openbsd.org>
Thu, 17 Oct 2024 22:44:17 +0000
(22:44 +0000)
committer
dlg
<dlg@openbsd.org>
Thu, 17 Oct 2024 22:44:17 +0000
(22:44 +0000)
ok claudio@
sys/kern/vfs_subr.c
patch
|
blob
|
history
diff --git
a/sys/kern/vfs_subr.c
b/sys/kern/vfs_subr.c
index
201fcac
..
922807b
100644
(file)
--- a/
sys/kern/vfs_subr.c
+++ b/
sys/kern/vfs_subr.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: vfs_subr.c,v 1.32
2 2024/07/13 14:37:55 beck Exp $
*/
+/* $OpenBSD: vfs_subr.c,v 1.32
3 2024/10/17 22:44:17 dlg Exp $
*/
/* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */
/*
@@
-246,10
+246,7
@@
vfs_unbusy(struct mount *mp)
int
vfs_isbusy(struct mount *mp)
{
- if (RWLOCK_OWNER(&mp->mnt_lock) > 0)
- return (1);
- else
- return (0);
+ return (rw_status(&mp->mnt_lock) != 0);
}
/*