[Bug 266480] Panic "sleeping thread" with qlnxe driver
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 266480] Panic "sleeping thread" with qlnxe driver"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 28 May 2024 07:40:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266480
Zhenlei Huang <zlei@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://bugs.freebsd.org/bu
| |gzilla/show_bug.cgi?id=2780
| |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 this
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)
```
--
You are receiving this mail because:
You are the assignee for the bug.