HomeFreeBSD

ena: Prevent reset after device destruction

Description

ena: Prevent reset after device destruction

Check for ENA_FLAG_TRIGGER_RESET inside a locked context in order to
avoid potential race conditions with ena_destroy_device. This aligns the
reset task logic with the Linux driver.

Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

Details

Provenance
ar_semihalf.comAuthored on Aug 12 2021, 8:34 AM
mwCommitted on Sep 1 2021, 11:06 PM
Parents
rG36130d2979d6: ena: Trigger reset on ena_com_prepare_tx failure
Branches
Unknown
Tags
Unknown