summaryrefslogtreecommitdiffstats
path: root/sys/dev/iscsi/iscsi.c
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-05-07 06:29:01 +0000
committertrasz <trasz@FreeBSD.org>2014-05-07 06:29:01 +0000
commit76ebd34835b2e2e1d405517d42868a02764eec0d (patch)
tree024a0087d2e808206d35754ee547c926eaad4427 /sys/dev/iscsi/iscsi.c
parentdfa8f3f0a1d3923f791360de1316b13345c93065 (diff)
downloadFreeBSD-src-76ebd34835b2e2e1d405517d42868a02764eec0d.zip
FreeBSD-src-76ebd34835b2e2e1d405517d42868a02764eec0d.tar.gz
MFC r264022:
Get rid of ICL lock; use upper-layer (initiator or target) lock instead. This avoids extra locking in icl_pdu_queue(); the upper layer needs to call it while holding its own lock anyway, to avoid sending PDUs out of order. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/dev/iscsi/iscsi.c')
-rw-r--r--sys/dev/iscsi/iscsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/iscsi/iscsi.c b/sys/dev/iscsi/iscsi.c
index 2b808f5..df881ed 100644
--- a/sys/dev/iscsi/iscsi.c
+++ b/sys/dev/iscsi/iscsi.c
@@ -1633,7 +1633,7 @@ iscsi_ioctl_session_add(struct iscsi_softc *sc, struct iscsi_session_add *isa)
return (EBUSY);
}
- is->is_conn = icl_conn_new();
+ is->is_conn = icl_conn_new(&is->is_lock);
is->is_conn->ic_receive = iscsi_receive_callback;
is->is_conn->ic_error = iscsi_error_callback;
is->is_conn->ic_prv0 = is;
OpenPOWER on IntegriCloud