Skip to main content
NetApp Knowledge Base

CONTAP-732488: Soft lockup in ib_cm threads due to cm.state_lock held during synchronous RDMA Address Handle creation

Views:
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
hw
Last Updated:

Issue

A FAS2820 node (NetappUM-03) running ONTAP 9.16.1P12 experienced a system panic due to a CPU thread hang. The panic was triggered when the node watchdog detected that the ib_cm_2 thread on CPU 1 had been spinning for over 4001 milliseconds without yielding. Analysis shows this was caused by contention on a global InfiniBand Connection Manager (IB CM) state lock (cm.state_lock) in the iRDMA driver. The thread ib_cm_7 held this lock while busy-waiting inside the irdma_create_ah_wait function, waiting for hardware to confirm Address Handle (AH) creation. Due to repeated HA interconnect (NVRAM mirror) disconnect/reconnect cycles, multiple ib_cm_* threads attempted reconnections, causing excessive lock contention and ultimately leading to a watchdog-triggered panic. The root cause is a design issue in the iRDMA driver, where a potentially long-running hardware poll is performed while holding a global lock, stalling the entire IB CM subsystem. 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.