Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Teach ddb(4)'s "show vnode_lock" about matching by ...
details: https://anonhg.NetBSD.org/src/rev/4875425782fb
branches: trunk
changeset: 1005652:4875425782fb
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Dec 15 20:30:03 2019 +0000
description:
Teach ddb(4)'s "show vnode_lock" about matching by v_interlock.
diffstat:
sys/kern/vfs_subr.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r 34413b6468ed -r 4875425782fb sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c Sun Dec 15 20:29:08 2019 +0000
+++ b/sys/kern/vfs_subr.c Sun Dec 15 20:30:03 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_subr.c,v 1.476 2019/12/15 20:29:09 joerg Exp $ */
+/* $NetBSD: vfs_subr.c,v 1.477 2019/12/15 20:30:03 joerg Exp $ */
/*-
* Copyright (c) 1997, 1998, 2004, 2005, 2007, 2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.476 2019/12/15 20:29:09 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.477 2019/12/15 20:30:03 joerg Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -1543,9 +1543,9 @@
for (mp = _mountlist_next(NULL); mp; mp = _mountlist_next(mp)) {
TAILQ_FOREACH(vip, &mp->mnt_vnodelist, vi_mntvnodes) {
- if (vip->vi_lock != vlock)
- continue;
- vfs_vnode_print(VIMPL_TO_VNODE(vip), full, pr);
+ if (vip->vi_lock == vlock ||
+ VIMPL_TO_VNODE(vip)->v_interlock == vlock)
+ vfs_vnode_print(VIMPL_TO_VNODE(vip), full, pr);
}
}
}
Home |
Main Index |
Thread Index |
Old Index