Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/iscsi ensure that timeout counter is cleared when cc...



details:   https://anonhg.NetBSD.org/src/rev/8a466936a00f
branches:  trunk
changeset: 345695:8a466936a00f
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Jun 05 05:41:53 2016 +0000

description:
ensure that timeout counter is cleared when ccb is (re-)used.

diffstat:

 sys/dev/iscsi/iscsi_utils.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r dfce375c93aa -r 8a466936a00f sys/dev/iscsi/iscsi_utils.c
--- a/sys/dev/iscsi/iscsi_utils.c       Sun Jun 05 05:40:29 2016 +0000
+++ b/sys/dev/iscsi/iscsi_utils.c       Sun Jun 05 05:41:53 2016 +0000
@@ -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 @@
        ccb->ITT = (ccb->ITT & 0xffffff);
        ccb->disp = CCBDISP_NOWAIT;
        ccb->connection = conn;
+       ccb->num_timeouts = 0;
        atomic_inc_uint(&conn->usecount);
 
        DEBC(conn, 15, (



Home | Main Index | Thread Index | Old Index