HomeFreeBSD

pfsync: locking fixes

Description

pfsync: locking fixes

  • Ensure we unlock the pfsync lock in pfsync_defer()
  • We must hold the bucket lock when calling pfsync_push()
  • The pfsync_defer_tmo() callout locks the bucket lock, not the pfsync lock

Reviewed by: glebius
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D33243

Details

Provenance
kpAuthored on Dec 2 2021, 4:42 PM
Reviewer
glebius
Differential Revision
D33243: pfsync: locking fixes
Parents
rG93a3fa41dcff: pfsync: fix defer timeout
Branches
Unknown
Tags
Unknown