aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/iscsi
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/iscsi')
-rw-r--r--sys/dev/iscsi/icl.h5
-rw-r--r--sys/dev/iscsi/icl_soft.c5
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/iscsi/icl.h b/sys/dev/iscsi/icl.h
index 07dcbbf2a0b5..edd43a45ba2e 100644
--- a/sys/dev/iscsi/icl.h
+++ b/sys/dev/iscsi/icl.h
@@ -120,6 +120,11 @@ struct icl_conn {
void *ic_prv0;
};
+#define ICL_CONN_LOCK(X) mtx_lock(X->ic_lock)
+#define ICL_CONN_UNLOCK(X) mtx_unlock(X->ic_lock)
+#define ICL_CONN_LOCK_ASSERT(X) mtx_assert(X->ic_lock, MA_OWNED)
+#define ICL_CONN_LOCK_ASSERT_NOT(X) mtx_assert(X->ic_lock, MA_NOTOWNED)
+
struct icl_drv_limits {
int idl_max_recv_data_segment_length;
int idl_max_send_data_segment_length;
diff --git a/sys/dev/iscsi/icl_soft.c b/sys/dev/iscsi/icl_soft.c
index 95c4c87dd6f3..37f3911204c4 100644
--- a/sys/dev/iscsi/icl_soft.c
+++ b/sys/dev/iscsi/icl_soft.c
@@ -123,11 +123,6 @@ static uma_zone_t icl_soft_pdu_zone;
static volatile u_int icl_ncons;
-#define ICL_CONN_LOCK(X) mtx_lock(X->ic_lock)
-#define ICL_CONN_UNLOCK(X) mtx_unlock(X->ic_lock)
-#define ICL_CONN_LOCK_ASSERT(X) mtx_assert(X->ic_lock, MA_OWNED)
-#define ICL_CONN_LOCK_ASSERT_NOT(X) mtx_assert(X->ic_lock, MA_NOTOWNED)
-
STAILQ_HEAD(icl_pdu_stailq, icl_pdu);
static icl_conn_new_pdu_t icl_soft_conn_new_pdu;