diff options
author | trasz <trasz@FreeBSD.org> | 2014-05-07 06:29:01 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2014-05-07 06:29:01 +0000 |
commit | 76ebd34835b2e2e1d405517d42868a02764eec0d (patch) | |
tree | 024a0087d2e808206d35754ee547c926eaad4427 /sys/dev/iscsi/iscsi.c | |
parent | dfa8f3f0a1d3923f791360de1316b13345c93065 (diff) | |
download | FreeBSD-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.c | 2 |
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; |