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.

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 Skipped
Unit
Unit Tests Skipped