Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/iscsi More debug output. Dump pending CCBs when clea...



details:   https://anonhg.NetBSD.org/src/rev/56ce4e9974ce
branches:  trunk
changeset: 345715:56ce4e9974ce
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Jun 05 13:45:56 2016 +0000

description:
More debug output. Dump pending CCBs when cleaning up.

diffstat:

 sys/dev/iscsi/iscsi_ioctl.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r f55a5f410e63 -r 56ce4e9974ce sys/dev/iscsi/iscsi_ioctl.c
--- a/sys/dev/iscsi/iscsi_ioctl.c       Sun Jun 05 13:44:48 2016 +0000
+++ b/sys/dev/iscsi/iscsi_ioctl.c       Sun Jun 05 13:45:56 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iscsi_ioctl.c,v 1.19 2016/06/05 08:30:13 mlelstv Exp $ */
+/*     $NetBSD: iscsi_ioctl.c,v 1.20 2016/06/05 13:45:56 mlelstv Exp $ */
 
 /*-
  * Copyright (c) 2004,2005,2006,2011 The NetBSD Foundation, Inc.
@@ -1690,6 +1690,11 @@
                                if (conn->usecount != last_usecount) {
                                        DEBC(conn, 5,("Cleanup: %d CCBs busy\n", conn->usecount));
                                        last_usecount = conn->usecount;
+                                       mutex_enter(&conn->lock);
+                                       TAILQ_FOREACH(ccb, &conn->ccbs_waiting, chain) {
+                                               DEBC(conn, 5,("Cleanup: ccb=%p disp=%d timedout=%d\n", ccb,ccb->disp, ccb->timedout));
+                                       }
+                                       mutex_exit(&conn->lock);
                                }
                                kpause("finalwait", false, hz, NULL);
                        }



Home | Main Index | Thread Index | Old Index