Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/iscsi Schedule command timeout without connection lo...
details: https://anonhg.NetBSD.org/src/rev/1fb612207cb1
branches: trunk
changeset: 379556:1fb612207cb1
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Jun 06 10:39:10 2021 +0000
description:
Schedule command timeout without connection lock being held to prevent
a deadlock.
diffstat:
sys/dev/iscsi/iscsi_send.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r ed7ed7461465 -r 1fb612207cb1 sys/dev/iscsi/iscsi_send.c
--- a/sys/dev/iscsi/iscsi_send.c Sun Jun 06 08:45:18 2021 +0000
+++ b/sys/dev/iscsi/iscsi_send.c Sun Jun 06 10:39:10 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsi_send.c,v 1.37 2018/03/04 07:39:45 mlelstv Exp $ */
+/* $NetBSD: iscsi_send.c,v 1.38 2021/06/06 10:39:10 mlelstv Exp $ */
/*-
* Copyright (c) 2004,2005,2006,2011 The NetBSD Foundation, Inc.
@@ -548,9 +548,10 @@ resend_pdu(ccb_t *ccb)
} else {
TAILQ_INSERT_TAIL(&conn->c_pdus_to_send, pdu, pdu_send_chain);
}
- ccb_timeout_start(ccb, COMMAND_TIMEOUT);
cv_broadcast(&conn->c_conn_cv);
mutex_exit(&conn->c_lock);
+
+ ccb_timeout_start(ccb, COMMAND_TIMEOUT);
}
Home |
Main Index |
Thread Index |
Old Index