Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107545269
D32858.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D32858.diff
View Options
diff --git a/sys/dev/cxgbe/cxgbei/icl_cxgbei.c b/sys/dev/cxgbe/cxgbei/icl_cxgbei.c
--- a/sys/dev/cxgbe/cxgbei/icl_cxgbei.c
+++ b/sys/dev/cxgbe/cxgbei/icl_cxgbei.c
@@ -129,11 +129,6 @@
static volatile u_int icl_cxgbei_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)
-
static icl_conn_new_pdu_t icl_cxgbei_conn_new_pdu;
static icl_conn_pdu_data_segment_length_t
icl_cxgbei_conn_pdu_data_segment_length;
diff --git a/sys/dev/iscsi/icl.h b/sys/dev/iscsi/icl.h
--- a/sys/dev/iscsi/icl.h
+++ b/sys/dev/iscsi/icl.h
@@ -120,6 +120,11 @@
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
--- a/sys/dev/iscsi/icl_soft.c
+++ b/sys/dev/iscsi/icl_soft.c
@@ -123,11 +123,6 @@
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;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 16, 4:48 PM (20 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15827395
Default Alt Text
D32858.diff (1 KB)
Attached To
Mode
D32858: Move the ICL_CONN_*LOCK* macros to <dev/iscsi/icl.h>.
Attached
Detach File
Event Timeline
Log In to Comment