https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266480

Zhenlei Huang <z...@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 <z...@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.

Reply via email to