Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/mfs Switch MFS device node to real vnode locking, VV...
details: https://anonhg.NetBSD.org/src/rev/cb81e43804c0
branches: trunk
changeset: 364366:cb81e43804c0
user: hannken <hannken%NetBSD.org@localhost>
date: Sat Mar 19 13:48:42 2022 +0000
description:
Switch MFS device node to real vnode locking, VV_LOCKSWORK now.
diffstat:
sys/ufs/mfs/mfs_vfsops.c | 6 ++++--
sys/ufs/mfs/mfs_vnops.c | 10 +++++-----
2 files changed, 9 insertions(+), 7 deletions(-)
diffs (68 lines):
diff -r 93ec5a4c7397 -r cb81e43804c0 sys/ufs/mfs/mfs_vfsops.c
--- a/sys/ufs/mfs/mfs_vfsops.c Sat Mar 19 13:48:04 2022 +0000
+++ b/sys/ufs/mfs/mfs_vfsops.c Sat Mar 19 13:48:42 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mfs_vfsops.c,v 1.114 2020/03/16 21:20:13 pgoyette Exp $ */
+/* $NetBSD: mfs_vfsops.c,v 1.115 2022/03/19 13:48:42 hannken Exp $ */
/*
* Copyright (c) 1989, 1990, 1993, 1994
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mfs_vfsops.c,v 1.114 2020/03/16 21:20:13 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mfs_vfsops.c,v 1.115 2022/03/19 13:48:42 hannken Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -208,6 +208,7 @@
rootvp->v_data = mfsp;
rootvp->v_op = mfs_vnodeop_p;
rootvp->v_tag = VT_MFS;
+ rootvp->v_vflag |= VV_LOCKSWORK;
mfsp->mfs_baseoff = mfs_rootbase;
mfsp->mfs_size = mfs_rootsize;
mfsp->mfs_vnode = rootvp;
@@ -326,6 +327,7 @@
KASSERT(devvp->v_data == NULL);
devvp->v_op = mfs_vnodeop_p;
devvp->v_data = mfsp;
+ devvp->v_vflag |= VV_LOCKSWORK;
mfsp->mfs_baseoff = args->base;
mfsp->mfs_size = args->size;
mfsp->mfs_vnode = devvp;
diff -r 93ec5a4c7397 -r cb81e43804c0 sys/ufs/mfs/mfs_vnops.c
--- a/sys/ufs/mfs/mfs_vnops.c Sat Mar 19 13:48:04 2022 +0000
+++ b/sys/ufs/mfs/mfs_vnops.c Sat Mar 19 13:48:42 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mfs_vnops.c,v 1.63 2021/07/18 23:57:15 dholland Exp $ */
+/* $NetBSD: mfs_vnops.c,v 1.64 2022/03/19 13:48:42 hannken Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mfs_vnops.c,v 1.63 2021/07/18 23:57:15 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mfs_vnops.c,v 1.64 2022/03/19 13:48:42 hannken Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -89,12 +89,12 @@
{ &vop_abortop_desc, genfs_badop }, /* abortop */
{ &vop_inactive_desc, mfs_inactive }, /* inactive */
{ &vop_reclaim_desc, mfs_reclaim }, /* reclaim */
- { &vop_lock_desc, genfs_nolock }, /* lock */
- { &vop_unlock_desc, genfs_nounlock }, /* unlock */
+ { &vop_lock_desc, genfs_lock }, /* lock */
+ { &vop_unlock_desc, genfs_unlock }, /* unlock */
{ &vop_bmap_desc, mfs_bmap }, /* bmap */
{ &vop_strategy_desc, mfs_strategy }, /* strategy */
{ &vop_print_desc, mfs_print }, /* print */
- { &vop_islocked_desc, genfs_noislocked }, /* islocked */
+ { &vop_islocked_desc, genfs_islocked }, /* islocked */
{ &vop_pathconf_desc, genfs_badop }, /* pathconf */
{ &vop_advlock_desc, genfs_badop }, /* advlock */
{ &vop_bwrite_desc, vn_bwrite }, /* bwrite */
Home |
Main Index |
Thread Index |
Old Index