Source-Changes-HG archive

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

[src/trunk]: src/sys/nfs Change a DIAGNOSTIC panic slightly to print the lock...



details:   https://anonhg.NetBSD.org/src/rev/7f095c2d826d
branches:  trunk
changeset: 498434:7f095c2d826d
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Oct 24 07:08:48 2000 +0000

description:
Change a DIAGNOSTIC panic slightly to print the locked vnodes and to just
print a diagnostic but not panic.

diffstat:

 sys/nfs/nfs_syscalls.c |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 817ef7b9ca0d -r 7f095c2d826d sys/nfs/nfs_syscalls.c
--- a/sys/nfs/nfs_syscalls.c    Tue Oct 24 03:59:16 2000 +0000
+++ b/sys/nfs/nfs_syscalls.c    Tue Oct 24 07:08:48 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_syscalls.c,v 1.45 2000/10/23 07:18:27 chs Exp $    */
+/*     $NetBSD: nfs_syscalls.c,v 1.46 2000/10/24 07:08:48 matt Exp $   */
 
 /*
  * Copyright (c) 1989, 1993
@@ -636,8 +636,14 @@
                                 * locking errors (usually, it's due to
                                 * forgetting to vput() something).
                                 */
-                               panic("nfsd: locking botch in op %d",
-                                   nd ? nd->nd_procnum : -1);
+#ifdef DEBUG
+                               extern void printlockedvnodes(void);
+                               printlockedvnodes();
+#endif
+                               printf("nfsd: locking botch in op %d"
+                                   " (before %d, after %d)\n",
+                                   nd ? nd->nd_procnum : -1,
+                                   lockcount, p->p_locks);
                        }
 #endif
                        if (mreq == NULL)



Home | Main Index | Thread Index | Old Index