pf: Rename pfsync bucket lock
Previously the main pfsync lock and the bucket locks shared the same name. This lead to spurious warnings from WITNESS like this: acquiring duplicate lock of same type: "pfsync" 1st pfsync @ /usr/src/sys/netpfil/pf/if_pfsync.c:1402 2nd pfsync @ /usr/src/sys/netpfil/pf/if_pfsync.c:1429 It's perfectly okay to grab both the main pfsync lock and a bucket lock at the same time. We don't need different names for each bucket lock, because we should always only acquire a single one of those at a time. MFC after: 1 week
This commit is contained in:
parent
da6a832080
commit
812483c46e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=345223
@ -363,7 +363,7 @@ pfsync_clone_create(struct if_clone *ifc, int unit, caddr_t param)
|
||||
M_PFSYNC, M_ZERO | M_WAITOK);
|
||||
for (c = 0; c < pfsync_buckets; c++) {
|
||||
b = &sc->sc_buckets[c];
|
||||
mtx_init(&b->b_mtx, pfsyncname, NULL, MTX_DEF);
|
||||
mtx_init(&b->b_mtx, "pfsync bucket", NULL, MTX_DEF);
|
||||
|
||||
b->b_id = c;
|
||||
b->b_sc = sc;
|
||||
|
Loading…
Reference in New Issue
Block a user