svn commit: r264163 - head/sys/dev/iscsi

Edward Tomasz Napierala trasz at FreeBSD.org
Sat Apr 5 18:41:08 UTC 2014


Author: trasz
Date: Sat Apr  5 18:41:08 2014
New Revision: 264163
URL: http://svnweb.freebsd.org/changeset/base/264163

Log:
  Remove hack to pass STAILQ to a function and do it properly instead.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/dev/iscsi/icl.c

Modified: head/sys/dev/iscsi/icl.c
==============================================================================
--- head/sys/dev/iscsi/icl.c	Sat Apr  5 18:32:40 2014	(r264162)
+++ head/sys/dev/iscsi/icl.c	Sat Apr  5 18:41:08 2014	(r264163)
@@ -105,6 +105,8 @@ static volatile u_int	icl_ncons;
 #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 void
 icl_conn_fail(struct icl_conn *ic)
 {
@@ -831,9 +833,8 @@ icl_pdu_finalize(struct icl_pdu *request
 }
 
 static void
-icl_conn_send_pdus(struct icl_conn *ic, void *fts)
+icl_conn_send_pdus(struct icl_conn *ic, struct icl_pdu_stailq *queue)
 {
-	STAILQ_HEAD(, icl_pdu) *queue = fts; /* XXX */
 	struct icl_pdu *request, *request2;
 	struct socket *so;
 	size_t available, size, size2;
@@ -943,7 +944,7 @@ static void
 icl_send_thread(void *arg)
 {
 	struct icl_conn *ic;
-	STAILQ_HEAD(, icl_pdu) queue;
+	struct icl_pdu_stailq queue;
 
 	ic = arg;
 


More information about the svn-src-head mailing list