Page MenuHomeFreeBSD

Remove adapters from t4_list earlier during detach.
ClosedPublic

Authored by jhb on Wed, Oct 9, 12:24 AM.

Details

Summary

This ensures the clip task won't race with t4_destroy_clip_table.

While here, make some mutex destroys unconditional since attach
always initializes them.

Test Plan
  • kldunload of if_cxgbe panicked due to the clip task racing with the clip table being destroyed
  • with this change and the fix for vmem_destroy, kldunload of if_cxgbe no longer panics

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jhb created this revision.Wed, Oct 9, 12:24 AM
np accepted this revision.Wed, Oct 9, 7:18 PM
This revision is now accepted and ready to land.Wed, Oct 9, 7:18 PM
This revision was automatically updated to reflect the committed changes.