Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2024 07:40:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 266480] Panic "sleeping thread" with qlnxe driver
Message-ID:  <bug-266480-227-C9siD9AyT8@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-266480-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-266480-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266480

Zhenlei Huang <zlei@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://bugs.freebsd.org/bu
                   |                            |gzilla/show_bug.cgi?id=3D2=
780
                   |                            |84

--- Comment #5 from Zhenlei Huang <zlei@FreeBSD.org> ---
Fix in 278084 changed the hw_lock from mutex(9) to sx(9). That should fix t=
his
issue.

```
diff --git a/sys/dev/qlnx/qlnxe/qlnx_os.h b/sys/dev/qlnx/qlnxe/qlnx_os.h
index 261283fb6eaf..6d717d0e70bf 100644
--- a/sys/dev/qlnx/qlnxe/qlnx_os.h
+++ b/sys/dev/qlnx/qlnxe/qlnx_os.h
@@ -130,8 +130,8 @@ MALLOC_DECLARE(M_QLNXBUF);
 /*
  * Locks
  */
-#define QLNX_LOCK(ha)          mtx_lock(&ha->hw_lock)
-#define QLNX_UNLOCK(ha)                mtx_unlock(&ha->hw_lock)
+#define QLNX_LOCK(ha)          sx_xlock(&ha->hw_lock)
+#define QLNX_UNLOCK(ha)                sx_xunlock(&ha->hw_lock)
```

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266480-227-C9siD9AyT8>