]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pf: Rename pfsync bucket lock
authorkp <kp@FreeBSD.org>
Sat, 16 Mar 2019 10:14:03 +0000 (10:14 +0000)
committerkp <kp@FreeBSD.org>
Sat, 16 Mar 2019 10:14:03 +0000 (10:14 +0000)
commitde68b872a7420a4e869a0c4b9d5e3b9eb4bd61fa
tree087bf816fcef9b1fe6c3ac8f4dd297f7c8021be7
parentd2e46ebc0d4d7bdb25d959bff6523e4785d58801
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
sys/netpfil/pf/if_pfsync.c