Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85D763090C5 for ; Mon, 13 Jul 2026 16:37:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.165.32 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783960638; cv=none; b=T+JMSUM+fzGalz7OB6834CqaSJG3bp+xOzJKE2qKQFripAAaAJnXZJCov80Mt3Fl3MCU19oeBqpO8c1sYmU/yyT/J5lh4T3K+erY+mzf4x8baUOjmbqrxfRNIfDHcSZ8hhQl9oAfMGl3xuTPrGjEKW/okWG7Otil2WAde7XzpK0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783960638; c=relaxed/simple; bh=g7HkcfAZlcvqzyvkr79BGbxwBBVCVnpk37mdEVZFo/0=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=R1o7mlh5CA5UGZMvRPdVU1EWcIoGvaxuuvnpiTheoZogcBpFEK/Hf4BRWvOGE4F9XAuYfjwA3oZZhNmumBv5geTW10VOpqCojoiPi4FsTjyJcXKiI5jbTatuVt726W9NO2OpvsHaD8bZBzHDVcFvmJ25LtmT2OjpumkCRrF3jL8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=sQghYHJb; arc=none smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="sQghYHJb" Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66DCCKIU1397458 for ; Mon, 13 Jul 2026 16:37:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=corp-2025-04-25; bh=LXjwOxcvk7rPB0hW 645AbclaCd2LyXM8Bp+vthJcZ2A=; b=sQghYHJbDHcecqmVLp15EHQpL7YcBQOS OVamn6kl58S6VsuCVgXe70YgThSsHaH83ZJG2YoA6Nz8obXoOm/JyI/0Vb1ZN2L9 YL82og7ou44AJ1DbBxolzu0cE5FK1AFG1rGOc1F7bzRQ621PJynWjw2uyOdb62L8 jYek05mBU789K6Wgr04S135w8oE6CQk9lKC4cI/WE96GnGo6KIpq1HGn71PD8HuV MrQLQCEzeMvnVdqz6ajHyrS+kVeikMbK/fuzfuFPSQ0zb91ej9C3H9rfyPNNd+6v 65JxIQ5jb2MPCcl0twYN7BIJ3NTvPiWrOsoqp7GRo2gryH7pGBTniA== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 4fbef0th9v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 13 Jul 2026 16:37:14 +0000 (GMT) Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.7/8.18.1.7) with ESMTP id 66DGXU1S004484 for ; Mon, 13 Jul 2026 16:37:13 GMT Received: from lab61.no.oracle.com (lab61.no.oracle.com [10.172.144.82]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTP id 4fbc9gfdas-1 for ; Mon, 13 Jul 2026 16:37:13 +0000 (GMT) From: =?UTF-8?q?H=C3=A5kon=20Bugge?= To: linux-kernel@vger.kernel.org Subject: [PATCH v2 0/4] test-ww_mutex: Miscellaneous fixes Date: Mon, 13 Jul 2026 18:37:04 +0200 Message-ID: <20260713163712.638876-1-haakon.bugge@oracle.com> X-Mailer: git-send-email 2.43.5 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-13_04,2026-07-10_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 spamscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 mlxscore=0 mlxlogscore=867 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2606160000 definitions=main-2607130172 X-Proofpoint-GUID: Q1nCOWbwySpqxXIQq9hMtMNlDZ_2foaN X-Proofpoint-Spam-Info: AW1haW4tMjYwNzEzMDE3MyBTYWx0ZWRfX7QdSn7Mts806 xt/3Mko8c0OmIenmuKjGH/qZA7W0LwohpvnAdqDBpjvKQ1cCJf7v5XeV6Z2I67cKLj+nt1Bw2/6 CaAanYQKSapUDmYZw9OTUyfqs2ED435G/0tNv7bZX0O2rscaR0Lq X-Authority-Analysis: v=2.4 cv=KJZqylFo c=1 sm=1 tr=0 ts=6a55143a b=1 cx=c_pps a=zPCbziy225d3KhSqZt3L1A==:117 a=zPCbziy225d3KhSqZt3L1A==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=M51BFTxLslgA:10 a=VkNPw1HP01LnGYTKEx00:22 a=jiCTI4zE5U7BLdzWsZGv:22 a=EIcjfB9IiI4px24ztqRk:22 a=KsSS-lqoHVgg01qHPQ4A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=5yU3S35YU4bGjq-dph-N:22 a=Bho9c0fBagfJEIQBS7DQ:22 cc=ntf awl=host:12221 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzEzMDE3MyBTYWx0ZWRfX68T9X8EoAQEb Phco5HC4AGmXW9BCDfL7S8vKXp1eRuIXS/jGbtZIIQS33Ui0TMjPt1Zw+HSAsgMW5nC2rdK0uwW MvlrWViQWw0XaB640sjOyWm+anECLEHS2GEustKERW0gwuJL1EKDDoqHHU3VQUNO6iDJE6srzEo CtWeDdhmqvzh4iz//vMqJd0DDxQvyTTJVOpUBjt8MOnohnQesPXrizvcDuhwB8DdMyvGGsZ6XsL tJf030ZfpcE/FYAuHyfD6MgaXGkfKWVbdg40tJ3J3PiwdNcei7Xe2xr3TVKWLFp4eFtW4Ew8Dv/ 1//oy33dwTwVTbBD5RkKv0aaudCWLu3RjSCPOG5n6c/fAbTxf9CxR3e6CrNfJHM6QDdp2GhRqZY oRCfrfJPXUFOHRNM49viQrFSrNB95tY/8Rwk3oEbJV5Hbf4R5+X8YNAR0ojDQj79IX5nOPrGPxD Mr9o17Q/+dToumfR2eT0KN6r2c99dPgcl7tz6oS4= X-Proofpoint-ORIG-GUID: Q1nCOWbwySpqxXIQq9hMtMNlDZ_2foaN This series fixes: - module cleanup - error propagation from stress workers - transient -EDEADLK handling in test_cycle_work() - timeout-related false negatives in stress_inorder_work() The series is re-based on v7.2-rc2 and has been tested on a 96-CPU x86_64 bare-metal system and a 160-CPU arm64 bare-metal system. Both systems completed 100 iterations of tools/testing/selftests/locking/ww_mutex.sh successfully with the self-test as a module. With the self-test as a built-in, both systems survived: for N in {1..100}; do echo 1 > /sys/kernel/test_ww_mutex/run_tests done The main differences between the original contribution and this v2, is that the first patch retains the sysfs file when the test is built-in, even in case of error (suggested by John Stultz). There is no change in the second commit, except for John's a-b. In the third commit, the endless spinning acquiring the mutex has been replaced by a modest for-loop, which follows the WW big-rules wrt. contention. The last patch has an improved commit message. HÃ¥kon Bugge (4): test-ww_mutex: Fix module cleanup test-ww_mutex: Report errors from stress workers test-ww_mutex: Handle transient -EDEADLK in test_cycle_work test-ww_mutex: Retry lock acquisition after timeout if deadlocked kernel/locking/test-ww_mutex.c | 68 +++++++++++++++++++++++++++------- 1 file changed, 54 insertions(+), 14 deletions(-) -- 2.43.5