diff options
author | Navdeep Parhar <np@FreeBSD.org> | 2023-12-27 21:00:29 +0000 |
---|---|---|
committer | Navdeep Parhar <np@FreeBSD.org> | 2024-01-11 05:22:30 +0000 |
commit | 2a2aec721fff347d9603987a839b58040c67cab2 (patch) | |
tree | a22ceed26f67d9f3a750b1f7b7409c46ab4426ef | |
parent | b4d11915c73f199501672b278be86e1f63790036 (diff) | |
download | src-2a2aec721fff347d9603987a839b58040c67cab2.tar.gz src-2a2aec721fff347d9603987a839b58040c67cab2.zip |
cxgbe(4): Destroy the tick mutex during VI detach.
This avoids a mutex reinitialization when the VI is detached and
reattached.
Fixes: 516fe911a6b7 cxgbe(4): Always use the per-VI callout to read interface stats.
Sponsored by: Chelsio Communications
(cherry picked from commit 8b144c015c9cce0bc99a7fbdc43f22f51a946d2c)
-rw-r--r-- | sys/dev/cxgbe/t4_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index a32cd9a3f2df..570208e2c562 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -2733,6 +2733,7 @@ cxgbe_vi_detach(struct vi_info *vi) #endif cxgbe_uninit_synchronized(vi); callout_drain(&vi->tick); + mtx_destroy(&vi->tick_mtx); sysctl_ctx_free(&vi->ctx); vi_full_uninit(vi); |