diff options
author | trasz <trasz@FreeBSD.org> | 2014-05-07 07:18:38 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2014-05-07 07:18:38 +0000 |
commit | e342286804141a78e8eefb3423460ed5835cc60b (patch) | |
tree | 03b3157de7ee3fdc5867c682ba6f4dc17666cac0 | |
parent | c4225c1e15340b8af5a6b3e11c37d219f768de29 (diff) | |
download | FreeBSD-src-e342286804141a78e8eefb3423460ed5835cc60b.zip FreeBSD-src-e342286804141a78e8eefb3423460ed5835cc60b.tar.gz |
MFC r264163:
Remove hack to pass STAILQ to a function and do it properly instead.
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | sys/dev/iscsi/icl.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/iscsi/icl.c b/sys/dev/iscsi/icl.c index b53edaa..5d203d8 100644 --- a/sys/dev/iscsi/icl.c +++ b/sys/dev/iscsi/icl.c @@ -102,6 +102,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) { @@ -828,9 +830,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; @@ -940,7 +941,7 @@ static void icl_send_thread(void *arg) { struct icl_conn *ic; - STAILQ_HEAD(, icl_pdu) queue; + struct icl_pdu_stailq queue; ic = arg; |