From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.177 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796031252; b=shQLQK4JW5UgyodoRjMesbAVDa3gDRAqZhK0b9jFGLQMnEXfjjBMWtUkfsy85PzfvaUo Osvn4lbJoa9kc42ojo0tSZQDQQf8J7uPqI6mmg/tUfJPD+S8xsy7odqEtQSXV4a7w5i6a i/7O/dWiJihRCuzrxgJme3Hz2QMNmgHV+ikx51fZB2h2MhhohY7JLb1f8JCs3tl+QVeHA P3IeQ4BPc7CB0M8Z3an66n2JeRCFewTCC9X+tNW93Wi1CO4oDpkTvMK26pZmJbj5A+sD0 CEyeE/CKKdRPDPpm1u021pcLB8bCtg9Ba0ymd5D/exKIHcxnRt0hwCpFaDVrZU3/6Ow== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796031252; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=yubjUdLOAnwdmV61T2shqD6JhRlcZKnvENY68gG8MI0=; b=tzYCg1V34ihvn6GlbiZ/YMzTKVyNtjcr68ueYULlU3op6i/fMbtfNRzcZmTrdsFTa+fL Kbd7CB7vP/8ViRbP+pa3g/Bp70mKo+4n6VBCJ1OOdOXopYqj7kk2WXlXy3f2xNNcLQ3Gd p11iW+R2j1hX3usBuuRJwSsfnh96OfVu+uxbHp+gS+5qCVRoJDKEqFuholb+M/5L2hWqx hhfBGtUqI1tp1uleDTJnOqGd4znNcb0XcwHnD7SQptCqUvq+hon/tm6CSCLYucuZ/jE8A aCGkUrEJYPbdS8iC0qooVSyQDvuU9dD+h/rQN5zj705/xuCsWe0OnMsP/fuebjuSG/Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=BvrdIeuV; arc=none smtp.remote-ip=209.85.215.177 Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DFE9606A680 for ; Mon, 30 Nov 2026 09:34:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2DFE9606A680 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=BvrdIeuV Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-cde1479f76fso5381797a12.0 for ; Mon, 30 Nov 2026 01:34:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796031251; x=1796636051; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=yubjUdLOAnwdmV61T2shqD6JhRlcZKnvENY68gG8MI0=; b=BvrdIeuVLzjWM6pFE52v1m16wA4Mo2gkZEP+ygvcHGYy0X9SwqLe3h2xe2ZOp0bRwI yRAP2hoL+P32K9eAyd50Mh659BLcFZ0sadVxHa/iGK0ZJ8lxos1huY08CvzZCgJRoStB LLcQx9iTRiHl3Z43qpE06/Kt34KRwZvJ0Ix+TIMxV49vhB+rpd61OiChWZXJ2Vw4o6pm 4wLaN59Rn5riOEDe7x4L/bmylFJtzazUXmXaT/llOApqtFj4FrWBgkncYcHW4hGhSd3G Gzrln9omMcWWI3D8VFhrlQAiymYbz3kNqWP28QXI2LuvpEiTyd5IP7z4xkFe7IU8VJgw oZaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796031251; x=1796636051; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=yubjUdLOAnwdmV61T2shqD6JhRlcZKnvENY68gG8MI0=; b=oVNEWL2MMVnSrzRlAuXccOI9Ic/wyiD1GdEXaTdGUetTYidyM6Ieq8L+p/40sBBBGz IJxUN8gXTgULFVTuxxLshtWceCllIYwq9ihsqIqAzFsguP+amJCibaohmD0L2rfLRVL3 pt+BxbJuwarXqzI9vViin1se5d/jWtg8eAw2tkALAtgT6LMnyEr1/JGjef/lC9UHz+/8 1zAaEO3We5otLa56mjR59wAj5EmTqp81/3o4hz6i/atR7LTcQNNcyvmEDxuH53pdQSUK ljOH6vKou+8I4c+qtXEEh/5xEyGj7zPUWiIdaDfHuqq0XdhK8Hn+K/wra8zuIU0uqMZe eXVQ== X-Forwarded-Encrypted: i=1; AL+hErH/nXeV3IQqb2Rdfc64fUpjnaqRGCGkmbamqQK+Hq/9QBURIMwYFIh5q1cUbCk/9Y46w1siiSt0OArZAcg=@vger.kernel.org X-Gm-Message-State: APuU4Z/24Oztxv5QR6C2RyvtffD/CN4JuxYp6VBaO2rsFkSlzpTDpCgZ fpyqheQpyUyx7Up9cPZGHkW6s98oc/V4nxsXvL+soKZTyYfoZNe2kKxJAKDBN1lE X-Gm-Gg: AZFdTZd2hQz9TyEUeEzzpNUGTKtVjNtAcWzmFwLwNC02/gERljzKB0THBAaB3HLE9zD TPt7UOxi+45JyujQuLTyKPcgp0LxqzRrCSSC3LBu3FbN37Hei68nEkaSNHRf/3ZL/a3QRHqZZvM d5L9YRU+iDhHj/ce29CnQX2VjlPBdsjXFpCKGzXSfh7zDnFDoaMkl5c0nVQiZ/15UCNos1BpiX3 uJ8gtyPQa58lmofEPrdy1Wft1xvgLXFDoWHNyjh52QXinlY5uYZNeKIZrAVkhulMjN7qGcg48KY DkXc0kWlODZ9/G306Lkqu8w5QDplvyV/K8mzw+jHu0/zRwi5zC/1YOdIxQDfaFBtHGkx67IcdEY 9YksvM2wlszxiKm4y1TsBcmGtU7k8b+s0NvWscnmi9nGpOuPD/sONgQFE45ilhtd5gSQloOMiZv L7onGsVqo3dUUp/JS6ZwNgyy/W105Qm8kap5+ayLT8wzOq0BnffeE1END+GwgEf3PrkxRaudaZR uE6gFCKcFnNMa3I9wZxvXExcbI3bD1JTCoo1IYR8NrMX9uK5LBN06T/UQhVuCisqLffAW3hsr/c SYmWqq3ulEeVphM+/m56Y8rOtyrKvwQz17BSiM7m0mK/21dnxfGceMz4AHqKT4WMnn6qdXZlhK1 dfpkC8J8= X-Received: by 2002:a17:90b:4a4f:b0:3ab:1e1c:837f with SMTP id 98e67ed59e1d1-3b41c93542dmr33519285a91.47.1796031250465; Mon, 30 Nov 2026 01:34:10 -0800 (PST) Received: from DESKTOP-TPPBPA1 (36-226-254-86.dynamic-ip.hinet.net. [36.226.254.86]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b40578dca0sm54953442a91.2.2026.11.30.01.34.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 01:34:09 -0800 (PST) From: Lin Tzu Yang To: Haruka Amakawa Cc: Breno Leitao , Greg Kroah-Hartman , Andreas Hindborg , Slawomir Stepien , William Chuang , linux-fsdevel@vger.kernel.org, linux-usb@vger.kernel.org, target-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC v3] configfs: don't lock the root inode in configfs_depend_item_unlocked() Date: Mon, 30 Nov 2026 17:34:05 +0800 Message-ID: <20261130093405.837082-1-rongh7426@gmail.com> X-Mailer: git-send-email 2.51.1.windows.1 In-Reply-To: <20261129-configfs-depend-root-lock-v3-1-82417fbbaba0@pm.me> References: <20261129-configfs-depend-root-lock-v3-1-82417fbbaba0@pm.me> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Sun, Nov 29, 2026 at 09:56:21PM +0900, Haruka Amakawa wrote: > - Not tested: a depend racing with configfs_register_subsystem() or > configfs_unregister_subsystem() of the target subsystem. I ran the same tests on arm64 (QEMU/KVM on a Raspberry Pi 5, PROVE_LOCKING + KASAN, hung task timeout 30s), configfs-next 2e0fad9d2eae with and without this patch. Without the patch, the tpgt_1 mkdir/rmdir loop against the rename() loop stops after the first mkdir. lockdep says nothing, and after 30s the hung task detector reports both tasks, one in configfs_depend_item_unlocked() and one in lock_two_directories(). With the patch, 60 seconds gives 2468 mkdirs and 4414 rename() calls, and there are no lockdep, hung task, KASAN or WARNING reports. rmdir of functions/tcm.usb0 still returns -EBUSY while tpgt_1 exists and works after it is removed. The configfs selftest passes 25/25, and the syzbot reproducer for 8c0a48f6c8357c9da819 runs with no lockdep report. I did not test the register/unregister race either. Tested-by: Lin Tzu Yang