From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.175 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796031252; b=aV8wgESyJB9Fs0G/gwFA/Vl+jSYgmnea5aSENtgUdD7PeIWlx3uS8fD2tvFMI5xvOthi XDQD/diUf4HIdQqNcWXCjpKY1KQGicg24QE4wfkNjaRXfUphrHCEexdI2eRN+X9xDvmnY j6sfHQPDa6Zmp7AYgYxie4Ja4mSfZVBBsRgrwrySvGqZKEv9OvC4IIzglGSXStSBoF38X PytYhqzOaXH5hu2KGkXnmSGgor66kIQyATIFGmstCJa5Dt2BQgzWlwWmKrEvc3X/RlRS1 cHP26Bf1Nux+nTNkuRRt95GocVPd1OOdOL88GeslQcrtOwciRs9oAEix14UWUIRnGUQ== 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=FkfLCXKztVMBDXdSvrPzJZ3gVx+BG8rI9bqVFquWWUngGcrsFEy33mxoP96CAx/gqOvu 7QlXbxqHjQQpO1fXNe3+RASpZWrvKOfFhR0us875++hatdaaCL+MRt+Bj5NW3DdifeSH3 lD/SnYkoDDkIrsNyVtByHI489EjsZcEccZ/8TEs5FfUg7Gig9KMF57dIc1obpFzOhDFNN El0nEmFuhRn7OXHB7aTDHbVVoBnYqmybJiO33jF0eCaTr45Tl0g46BauMGJVrmqQoMZR8 rRBnLWvPT9cmnYbD0svMiA5lRaWb5XW0ij8bEMvpq7zbwn/8DSK2rFiJDVnl6bqsvhQ== 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.175 Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) (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 3210A606A681 for ; Mon, 30 Nov 2026 09:34:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3210A606A681 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-f175.google.com with SMTP id 41be03b00d2f7-cdb2893531bso5411016a12.1 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=q7Dxfl5Wz9S7SEhYQ2QeKn63wRmS5XljL9d8iRl5czOebQ5KreCmvub5I8mnxL1yj8 WEGmCiWtlx3UzHl/sLzEnVvCJNqfUTGfvS3APzr/V76wFoILrLDCGMDJ/TLkjt8LSMuJ OQjxz/m1+bGQiaA7gnpHO7TXZO12F0OSWXx6JLskFg0C6EMgwGLEly3H/OcL6R85Ih4n 9F+chf6OQUz293meVOY9yJzbm0pCxqD+kVfoETSZmLpYp9MaQnVal9yJV96oT2jYPnZ7 MvvYZeMgtJbdXx8CDdorRtUXHK1ViKavQm3oraICZMKih52Chmuq9Qe0BSseTJTWmClN BwoA== X-Forwarded-Encrypted: i=1; AL+hErGFtx/LtOzVx85zWUVHSPLV7TJh3yuP0F0IXp7GxxxDccOMZ7f3Z4FGw3w85QqcNJrFiomwmZlkLIjQYZA=@vger.kernel.org X-Gm-Message-State: APuU4Z8aM0vTKSbOXWTAeTSbw/fUyXvh1BG8px1ghYcAdh5UFay9ShQH YxoBzZ6cnpQk/BgUjnI5FNTVZKEcfEpPYatwpXF822kR/KgXAvOhTtPd X-Gm-Gg: AZFdTZePwaA+K4I2+RPtIXTrESuJwfnkgbn8sAd79RGxuERnezNb9IC82vxdG7rqHLT Ae5nMIUxJ8fOnL8FynSm+E70Iea2Zimp27CVFrBqQ6EtMwOCZ+yTaSBujMWVnJcoVwYccNF+NAd UO2rys+5Fnx9umV5W3ZQ2lkj6lbqu+eBbkuMo5kS/KQasF3F/GiH4YXMbA+EMwTps/oDwT6neji 4STpmA5nl4diLKz+7rVyb7L2qjf3o1RuwbecNeWxduZK6B51WiJw/CA7Ukr2AJm2e/Rnj6Qfs20 AvvZrAV3qgTZDBAs+sVnbiaCoTSazthO0t4WteyzXwx9gUjsIhHHZloqid8y1vlJC9UCh4v62kN JIXbQyUaefnvOyy2X7gW75Y4Phl8ZCIMlSLErGvot87tr1vdyrQKx/ImoBEZpxcIA0nMov7bTFa Oidt0abgjJk2K2c9L0wmRTFBkLAy8YtB9xiKEmk4vJZNg3VUo0HQt1SyTZPKknoEzXGbZaXQUxU Mm0bLYKjVFOcVNFzb3w4ht21eAlfzOYbdWzaGdgOO6IdN8sKQcpSGcLaEtyqJhMAmVMjvgogbyZ 275yixv3iKBfDhyKbpjupTOwkhtv3idzddOpMsBj5+/tK6ZmMEE0R6PnueHdbEs3V+xVdKXBGUQ 7gnShf6Y= 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: target-devel@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