Page MenuHomeFreeBSD

ena: add locks before each ena_up and ena_down
ClosedPublic

Authored by mk_semihalf.com on May 26 2017, 10:45 AM.
Referenced Files
Unknown Object (File)
Sun, Apr 14, 5:05 PM
Unknown Object (File)
Fri, Apr 5, 1:01 AM
Unknown Object (File)
Thu, Mar 28, 9:19 AM
Unknown Object (File)
Jan 16 2024, 8:50 AM
Unknown Object (File)
Dec 23 2023, 8:53 AM
Unknown Object (File)
Dec 20 2023, 2:36 AM
Unknown Object (File)
Sep 18 2023, 9:35 PM
Unknown Object (File)
Aug 26 2023, 1:23 PM

Details

Summary

Lock only ena_up and ena_down calls in ioctl handler, instead of whole
ioctl. Locking ioctl with sx lock that is sleepable, is not allowed in
some cases, e.g. when multicast options are being changed.
Additional locking was added in detach function to prevent race condition
with ioctl function.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable