Created attachment 245864 [details] DDB thread 1
Created attachment 245865 [details] DDB thread 2
Created attachment 245866 [details] DDB lockchain
Created attachment 245867 [details] DDB trace (text)
Created attachment 245868 [details] DDB trace (text)
So who is the owner of the lock blocking other threads? The min useful set of data for a deadlock is ddb 'show alllocks' and 'alltrace'.
I have written a patch for review: https://reviews.freebsd.org/D42368
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=a592812327deaf69ab226afc5c8a01af43dc03c2 commit a592812327deaf69ab226afc5c8a01af43dc03c2 Author: Martin Matuska <mm@FreeBSD.org> AuthorDate: 2023-11-13 13:29:27 +0000 Commit: Martin Matuska <mm@FreeBSD.org> CommitDate: 2023-11-16 11:17:41 +0000 mlx5_core: fix deadlock when using RXTLS If removing a node of type FS_TYPE_FLOW_DEST we lock the flow group too late. This can lead to a deadlock with fs_add_dst_fg(). PR: 274715 MFC after: 1 week Reviewed by: kib Tested by: mm Differential Revision: https://reviews.freebsd.org/D42368 sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=ac83e415ef083da400509c6fa434ee59cfe9668f commit ac83e415ef083da400509c6fa434ee59cfe9668f Author: Martin Matuska <mm@FreeBSD.org> AuthorDate: 2023-11-13 13:29:27 +0000 Commit: Martin Matuska <mm@FreeBSD.org> CommitDate: 2023-11-22 08:00:23 +0000 mlx5_core: fix deadlock when using RXTLS If removing a node of type FS_TYPE_FLOW_DEST we lock the flow group too late. This can lead to a deadlock with fs_add_dst_fg(). PR: 274715 Reviewed by: kib Tested by: mm Differential Revision: https://reviews.freebsd.org/D42368 (cherry picked from commit a592812327deaf69ab226afc5c8a01af43dc03c2) sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)