diff options
author | Klemens Nanni <kn@cvs.openbsd.org> | 2023-05-03 10:32:49 +0000 |
---|---|---|
committer | Klemens Nanni <kn@cvs.openbsd.org> | 2023-05-03 10:32:49 +0000 |
commit | 8c9886e4a01a802adf9b69f96dbbc8efe18f5997 (patch) | |
tree | 53bcb9b4e41d2bbea70ab7fcda4cd29c967a3123 /sbin/mount_udf | |
parent | 0c10e015f51c889526fd9374effc9d86597328bb (diff) |
Remove net lock from DIOCGETRULESET and DIOCGETRULESETS
Both walk the list of rulesets aka. anchors, to yield a total count and
specific anchor name, respectively. Same access, different copy out.
pf_anchor_global are contained within pf_ioctl.c and pf_ruleset.c and
fully protected by the pf lock, as is pf_main_ruleset and its pf.c usage.
Rely on and assert for pf lock alone. 'pfctl -sr' on 60k unique rules gets
noticably faster, around 2.1s instead of 3.5s.
OK sashan
Diffstat (limited to 'sbin/mount_udf')
0 files changed, 0 insertions, 0 deletions