netgraph7: ng_ksocket: lwkt_{get,rel}token() -> lwkt_{get,rel}pooltoken().
authorNuno Antunes <nuno.antunes@gmail.com>
Fri, 17 Sep 2010 15:04:16 +0000 (16:04 +0100)
committerNuno Antunes <nuno.antunes@gmail.com>
Tue, 10 Jan 2012 14:10:30 +0000 (14:10 +0000)
sys/netgraph7/ksocket/ng_ksocket.c

index 3b7ada9..4d95df9 100644 (file)
@@ -1187,10 +1187,10 @@ ng_ksocket_finish_accept(priv_p priv)
        int len;
        int error;
 
-       lwkt_gettoken(&head->so_rcv.ssb_token);
+       lwkt_getpooltoken(head);
        so = TAILQ_FIRST(&head->so_comp);
        if (so == NULL) {       /* Should never happen */
-               lwkt_reltoken(&head->so_rcv.ssb_token);
+               lwkt_relpooltoken(head);
                return;
        }
        TAILQ_REMOVE(&head->so_comp, so, so_list);
@@ -1198,7 +1198,7 @@ ng_ksocket_finish_accept(priv_p priv)
        soclrstate(so, SS_COMP);
        so->so_head = NULL;
        soreference(so);
-       lwkt_reltoken(&head->so_rcv.ssb_token);
+       lwkt_relpooltoken(head);
 
        /* XXX KNOTE(&head->so_rcv.ssb_sel.si_note, 0); */