HomeFreeBSD

lagg: remove use of net epoch in the ioctl paths

Description

lagg: remove use of net epoch in the ioctl paths

Rely on LAGG_SLOCK() instead. The use of network epoch(9) here was added
in 6573d7580b851 (later tidied by 87bf9b9cbeebc) as a large sweep that
blindly substituted blocking kernel primitives with epoch(9). In these
particular code paths use of epoch(9) is incorrect and doesn't provide any
protection against a stale pointer. Recent fix 48698ead6ff0, which should
actually have removed the epoch use, created a potential sleeping in epoch
problem.

Details

Provenance
glebiusAuthored on May 6 2024, 10:25 PM
Parents
rG570685971c6a: lagg: propagate up/down to the children
Branches
Unknown
Tags
Unknown