diff options
| author | mlelstv <mlelstv@NetBSD.org> | 2016-06-05 13:45:56 +0000 |
|---|---|---|
| committer | mlelstv <mlelstv@NetBSD.org> | 2016-06-05 13:45:56 +0000 |
| commit | 371f1730f4b5d2fd72ab5dae5df32b48aaa2068b (patch) | |
| tree | 94e8a83bf15a0398a24d0fc58c10876fb47edd7e /sys/dev | |
| parent | d3cf12532257b47c860f2d95d58341273e92700c (diff) | |
More debug output. Dump pending CCBs when cleaning up.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/iscsi/iscsi_ioctl.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/iscsi/iscsi_ioctl.c b/sys/dev/iscsi/iscsi_ioctl.c index b1fd215e2b7..995a8d8829d 100644 --- a/sys/dev/iscsi/iscsi_ioctl.c +++ b/sys/dev/iscsi/iscsi_ioctl.c @@ -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 @@ iscsi_cleanup_thread(void *par) 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); } |
