Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795047267; b=j7r1vUajV1vLJjB8DO9PS6J5qif3E7pfShJKadsHHa48jVOMYoh/OZiYLs/ZaUjVF2gY FhoVENAPMLAGbgDcUwPqaGMA0GVBdRbGB0M7OMB6lBkj6+i0UlCLKHJqds8HtOYJx0gGc kSZWRZjOAmu9Fqd1J/b3RmJgj4W7n3gPBy1NfUeu3j/ectYjXFDzLzKEYdrkuKGJp9CR5 8dEpwbis6kswzDUXm9vBcrPY4foc9inG2HTiiE1YTOuM9xoURScvJGEAmz3FrMQK5aO3p WqY94v4Gd+xw4jfzoSv+3cz791qNHROlgwsYokbh7fNr3qodoPJmtUxCS7UBtPoZ6Rw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795047267; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=GJzx/RH7hhIoVPdtN0+25sVSE7wCBEceg9bzx+ivqJE=; b=XelF1S2R1yxoydxP0mv/CLNvmNstUaeMhKYwMAwjA1VElCNLebiWP1ZREBDp8K54mmbd +Y9+7QpjE6xvST6mY3JSMsTWd0ZVKvQ81k04rfwhtRS3h2SrDisKSSLKaUDupsyXzH11n OKj9YTmxqLzwB8gk8oV3fnOwhnYmj8DqC1GVgtu1k/neTBLu1dhu2cdZzvcBEbkGkoSIz y98kkTDRfnXhBJuD+e8iFgWtzTz+P/OjGCb8199MplV6Q5XKVW2H6BTazwvGY9LU8InGC IXxNrxYyl7BOf5UlANFtV1ceAR4jwhu2bC1SrgHXnH+kynmr2UBUCOgOJcUQY6Obhiw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=KF2LboAu; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B4DE606A325; Thu, 19 Nov 2026 00:14:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=KF2LboAu Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CE241F000C4; Thu, 19 Nov 2026 00:14:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795047267; bh=GJzx/RH7hhIoVPdtN0+25sVSE7wCBEceg9bzx+ivqJE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=KF2LboAuc1BmCh4lcgD/OWxGIQRBcihEUJ5bZHB5XCffE41zQxH8k6RxaJq6e1VCK NsmwKZnI7yeJKwp1ui8N+cxmxkhwc5uycLiHtUGF10f9QgKq1GoEgSRX6LJDBq5NXu 59vO7WEZoN3xMaTqqh0zoMUlqh08MElnfUleaL1M= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Breno Leitao , "Paul E. McKenney" , "Christian Brauner (Amutable)" , Sasha Levin Subject: [PATCH 6.1 1578/2857] dcache: report a Tasks-RCU quiescent state in dentry_kill() Date: Wed, 18 Nov 2026 15:43:32 +0100 Message-ID: <20261118150258.194563378@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150201.293410965@linuxfoundation.org> References: <20261118150201.293410965@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Breno Leitao [ Upstream commit a647a53bc89a046bee4a12a0a5627f2dfaaef807 ] I am constantly seeing the following warning on Meta's fleet: INFO: rcu_tasks detected stalls on tasks: native_queued_spin_lock_slowpath locked_inode_to_wb_and_lock_list inode_io_list_del evict __dentry_kill shrink_dentry_list shrink_dcache_tree d_invalidate btrfs_delete_subvolume btrfs_ioctl_snap_destroy btrfs_ioctl do_syscall_64 dentry_kill() is the common funnel for dentry teardown: dput(), shrink_dentry_list() and shrink_dcache_tree() all reach it, once per dentry, and its cond_resched() is the only reschedule point on that path. cond_resched() is not an RCU-tasks quiescent state. Use cond_resched_tasks_rcu_qs() so the teardown reports an RCU-tasks quiescent state as it proceeds. Fixes: 9c5f1d30199d ("dcache: move cond_resched() into the end of __dentry_kill()") Cc: stable@vger.kernel.org Signed-off-by: Breno Leitao Link: https://patch.msgid.link/20260918-dcache-task-rcu-qa-v1-1-963ec83e6d0b@debian.org Reviewed-by: Paul E. McKenney Signed-off-by: Christian Brauner (Amutable) [ sashal: applied the change in __dentry_kill() instead of dentry_kill() ] Signed-off-by: Sasha Levin --- fs/dcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/dcache.c b/fs/dcache.c index 205552e31b200..a03646aff093d 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -623,7 +623,7 @@ static void __dentry_kill(struct dentry *dentry) spin_unlock(&dentry->d_lock); if (likely(can_free)) dentry_free(dentry); - cond_resched(); + cond_resched_tasks_rcu_qs(); } static struct dentry *__lock_parent(struct dentry *dentry) -- 2.53.0