Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/iscsi don't sleep in run_xfer path.
details: https://anonhg.NetBSD.org/src/rev/7217aae214e5
branches: trunk
changeset: 815726:7217aae214e5
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Wed Jun 01 05:31:59 2016 +0000
description:
don't sleep in run_xfer path.
diffstat:
sys/dev/iscsi/iscsi_send.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 92172673da31 -r 7217aae214e5 sys/dev/iscsi/iscsi_send.c
--- a/sys/dev/iscsi/iscsi_send.c Wed Jun 01 05:27:40 2016 +0000
+++ b/sys/dev/iscsi/iscsi_send.c Wed Jun 01 05:31:59 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsi_send.c,v 1.18 2016/06/01 05:13:07 mlelstv Exp $ */
+/* $NetBSD: iscsi_send.c,v 1.19 2016/06/01 05:31:59 mlelstv Exp $ */
/*-
* Copyright (c) 2004,2005,2006,2011 The NetBSD Foundation, Inc.
@@ -1221,7 +1221,7 @@
/* can only happen if terminating... */
if (ccb == NULL)
return conn->terminating;
- ppdu = get_pdu(conn, TRUE);
+ ppdu = get_pdu(conn, xs == NULL);
if (ppdu == NULL) {
free_ccb(ccb);
return conn->terminating;
@@ -1371,7 +1371,7 @@
}
mutex_exit(&sess->lock);
- ppdu = get_pdu(conn, FALSE);
+ ppdu = get_pdu(conn, waitok);
if (ppdu == NULL) {
DEBOUT(("No PDU for send_command, ccb = %p\n",ccb));
ccb->disp = disp;
Home |
Main Index |
Thread Index |
Old Index