Module Name: src
Committed By: mlelstv
Date: Sun Jun 5 05:41:53 UTC 2016
Modified Files:
src/sys/dev/iscsi: iscsi_utils.c
Log Message:
ensure that timeout counter is cleared when ccb is (re-)used.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/iscsi/iscsi_utils.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/iscsi/iscsi_utils.c
diff -u src/sys/dev/iscsi/iscsi_utils.c:1.15 src/sys/dev/iscsi/iscsi_utils.c:1.16
--- src/sys/dev/iscsi/iscsi_utils.c:1.15 Sun Jun 5 05:36:57 2016
+++ src/sys/dev/iscsi/iscsi_utils.c Sun Jun 5 05:41:53 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsi_utils.c,v 1.15 2016/06/05 05:36:57 mlelstv Exp $ */
+/* $NetBSD: iscsi_utils.c,v 1.16 2016/06/05 05:41:53 mlelstv Exp $ */
/*-
* Copyright (c) 2004,2005,2006,2008 The NetBSD Foundation, Inc.
@@ -247,6 +247,7 @@ get_ccb(connection_t *conn, bool waitok)
ccb->ITT = (ccb->ITT & 0xffffff);
ccb->disp = CCBDISP_NOWAIT;
ccb->connection = conn;
+ ccb->num_timeouts = 0;
atomic_inc_uint(&conn->usecount);
DEBC(conn, 15, (