]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove adapters from t4_list earlier during detach.
authorjhb <jhb@FreeBSD.org>
Wed, 9 Oct 2019 21:08:51 +0000 (21:08 +0000)
committerjhb <jhb@FreeBSD.org>
Wed, 9 Oct 2019 21:08:51 +0000 (21:08 +0000)
commitbf3394bad483539f805fa8c299ad59a24ad4832d
treefa5d5b618c6e3de302f55d4a56dc6d0451128db5
parent516b5533ca8609e71acdd89e7fdc5b1f9f9084f5
Remove adapters from t4_list earlier during detach.

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.

Reviewed by: np
MFC after: 1 week
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D21952
sys/dev/cxgbe/t4_main.c