Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/miscfs/genfs v_interlock -> vmobjlock



details:   https://anonhg.NetBSD.org/src/rev/33eea0810ca8
branches:  trunk
changeset: 969618:33eea0810ca8
user:      ad <ad%NetBSD.org@localhost>
date:      Mon Feb 24 20:49:51 2020 +0000

description:
v_interlock -> vmobjlock

diffstat:

 sys/miscfs/genfs/genfs_io.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 55fd60ea2ff7 -r 33eea0810ca8 sys/miscfs/genfs/genfs_io.c
--- a/sys/miscfs/genfs/genfs_io.c       Mon Feb 24 20:47:47 2020 +0000
+++ b/sys/miscfs/genfs/genfs_io.c       Mon Feb 24 20:49:51 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: genfs_io.c,v 1.86 2020/02/23 15:46:41 ad Exp $ */
+/*     $NetBSD: genfs_io.c,v 1.87 2020/02/24 20:49:51 ad Exp $ */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.86 2020/02/23 15:46:41 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.87 2020/02/24 20:49:51 ad Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1916,7 +1916,7 @@
 
        spoff = trunc_page(off);
        epoff = round_page(off + len);
-       mutex_enter(vp->v_interlock);
+       rw_enter(vp->v_uobj.vmobjlock, RW_WRITER);
        error = VOP_PUTPAGES(vp, spoff, epoff, pgoflags);
        if (error) {
                return error;



Home | Main Index | Thread Index | Old Index