Index: sys/net/pfil.c =================================================================== RCS file: /cvsroot/src/sys/net/pfil.c,v retrieving revision 1.32 diff -u -p -r1.32 pfil.c --- sys/net/pfil.c 16 Jan 2017 09:28:40 -0000 1.32 +++ sys/net/pfil.c 22 Jan 2017 15:57:38 -0000 @@ -384,7 +384,6 @@ pfil_run_hooks(pfil_head_t *ph, struct m pfil_listset_t *phlistset; pfil_list_t *phlist; struct psref psref; - int s; int ret = 0; KASSERT(dir == PFIL_IN || dir == PFIL_OUT); @@ -392,7 +391,8 @@ pfil_run_hooks(pfil_head_t *ph, struct m return ret; } - s = pserialize_read_enter(); + int bound = curlwp_bind(); + int s = pserialize_read_enter(); phlist = phlistset->active; membar_datadep_consumer(); psref_acquire(&psref, &phlist->psref, pfil_psref_class); @@ -406,6 +406,7 @@ pfil_run_hooks(pfil_head_t *ph, struct m break; } psref_release(&psref, &phlist->psref, pfil_psref_class); + curlwp_bindx(bound); if (mp) { *mp = m; @@ -416,12 +417,11 @@ pfil_run_hooks(pfil_head_t *ph, struct m static void pfil_run_arg(pfil_listset_t *phlistset, u_long cmd, void *arg) { - pfil_list_t *phlist; struct psref psref; - int s; - s = pserialize_read_enter(); - phlist = phlistset->active; + int bound = curlwp_bind(); + int s = pserialize_read_enter(); + pfil_list_t *phlist = phlistset->active; membar_datadep_consumer(); psref_acquire(&psref, &phlist->psref, pfil_psref_class); pserialize_read_exit(s); @@ -431,6 +431,7 @@ pfil_run_arg(pfil_listset_t *phlistset, (*func)(pfh->pfil_arg, cmd, arg); } psref_release(&psref, &phlist->psref, pfil_psref_class); + curlwp_bindx(bound); } void