Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp930785lqp; Thu, 23 May 2024 04:38:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNxBun+Kf/OUggWXHi814wePiTEgiDJ463WGP7tHL8HnThbhc+3Xt7QbEkPkdY7Mb78+Lnln4U77HXbnMP/FRDX5Nr5az7j5RNadeWug== X-Google-Smtp-Source: AGHT+IGrc+6lDe15QFepPuJYdmlmAFRVAhva7f/4d4w7KdGdYx6kqcgvsvtl7Jaf7WicEGIilvPo X-Received: by 2002:a05:6870:b00e:b0:22e:c6da:6196 with SMTP id 586e51a60fabf-24c68bac570mr5256671fac.27.1716464339008; Thu, 23 May 2024 04:38:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716464338; cv=pass; d=google.com; s=arc-20160816; b=zhaQb/DOFJjKmiGw6elJkQ+Lw8ruiDUY4Fx3LlsVHSvbfwFIGV9itKpujOzlEIlvld 4l2GQKfRlAnYefeye+cxH2rdh7+p2Whp8aavbQ/yUNbu0qwrrlWtf4RQGjqiITKxgpTX LAmviTWXU1EAQ336OAQJIg2/Pnv2XvGKERGr2cLFEYEXMS7EwRVNKgPKeGIcNFLtfOsK A59ixjiES8SaQT2OJ38/c7QudhFeCj+1iyAHhGCWRTVZDqczEwgIlEiLTnoHqow9zt2T qNFxXuwFvhbJ0AbPq0xZZEo0JqyNS7E1/Wmspb8cMMQGx6yzaT6WtFBhg3WkPDt5zJPS FU8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+UPBUNrmPRgLZO1cfVnj+pDwyoFMA4AC4qyOLHtYS/U=; fh=5KVIjy1HKcOOMSZ3Ujw/6yt0B+M2dZ5NqdML/seqkiU=; b=pWsjfWl+3cAcaZf93LblGAlXbI9YTD5sovhosXn/FBEleD7TaMK7UVMQjKFqSrB4Co ss8SL4Tf0p8QkktP/bx9l90kSRs+TIPzLebZMjYfZjKR9b+IPZt1WbpfZoYDq0xGBge0 SH1fdlqVb+cRt6G8ypo+h6+CDvgbYhQdGdUOZp0GThnx+gxWT+n6Jh/TmuPicgUJi0dm S9yEu86fNv7gDaOHwz8k4xwk0GDvmOhBdO647syzeiob39WjhT+Bf56B5Xdrw6mOrcjN pRwqin/gYvy786BHCrj1G3MNHKmlVpP3BuOjId4V7Q3lU4sXPwx8AiXVuWOtbuJ9hI87 Nk9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=qPXoTi4M; arc=pass (i=1 spf=pass spfdomain=codewreck.org dkim=pass dkdomain=codewreck.org dmarc=pass fromdomain=codewreck.org); spf=pass (google.com: domain of linux-kernel+bounces-187407-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187407-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2a72a03si27551687b3a.46.2024.05.23.04.38.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 04:38:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187407-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=qPXoTi4M; arc=pass (i=1 spf=pass spfdomain=codewreck.org dkim=pass dkdomain=codewreck.org dmarc=pass fromdomain=codewreck.org); spf=pass (google.com: domain of linux-kernel+bounces-187407-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187407-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9B36E2835E7 for ; Thu, 23 May 2024 11:38:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF6981487D9; Thu, 23 May 2024 11:38:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=codewreck.org header.i=@codewreck.org header.b="qPXoTi4M" Received: from submarine.notk.org (62-210-214-84.rev.poneytelecom.eu [62.210.214.84]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B9DE413C8FF; Thu, 23 May 2024 11:38:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.210.214.84 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716464332; cv=none; b=bGpLQzMr1BKw+fhqIRLzQ+ob/EUmFJDrDtVQH6IW1Jrn3gXCbC2QElmoi2JTvie4YaOkLzP+tutyfLqgPf9d9Vn3X8wBz4A4lPBGDMbWDxmusjQlJGSgdISEwtquEHfan/Ee5/RcDbLU8psh3h4Yu0g3sz4q1mA7bdixh7LNXVM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716464332; c=relaxed/simple; bh=t+BMAGgGVYWb3TWQl8dOTOj/tYR/7eTfx9+KgXq0piQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ds5gc86G2yhCTH8W3MQVsFmN1Sjpij9YNiklmHFNoT7dGGOjIUuaZtNUNm/8/0Thtoa297ekV7L+QiX08SIznRzyHbEEf4+GMtcwQJkq/OjMeBAcrm+FfGp6KHGnJymP/rwFmB/vFVz+/PiqTvpK33ZptBNiwfQOTsGryvkl/kw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codewreck.org; spf=pass smtp.mailfrom=codewreck.org; dkim=pass (2048-bit key) header.d=codewreck.org header.i=@codewreck.org header.b=qPXoTi4M; arc=none smtp.client-ip=62.210.214.84 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codewreck.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=codewreck.org Received: from gaia.codewreck.org (localhost [127.0.0.1]) by submarine.notk.org (Postfix) with ESMTPS id 08ADB14C2DD; Thu, 23 May 2024 13:38:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1716464329; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+UPBUNrmPRgLZO1cfVnj+pDwyoFMA4AC4qyOLHtYS/U=; b=qPXoTi4M5WqOx4aD34L9/u0oiRq3brYmaosDXbfCMPkcLS3C/dyS192+PWfzC3i/yeVDuG z0PWX9QmDAIV/Z+ZkIyyu3gsJ4DfJ1hLH+VDsDZKTQYaQH94XpFs4WaThXbsjGxINShYvO J0ZOHrDWqqRtKsgqHeoZojJ89egyCKwMU7ylorj4jQ5smfLxnXMuttJVtFsp1MFRmvlk3d yIng+CYdkxqJlHyHiW+m/+P6dE2b2rYydH2zx5I5YAoiLlE4QbuhYoXuc4ytmJ8mlbHmp4 IkAnWkg4TQL8syWa1H2eTuNrmdMuFJ/O7njTWYZQ5YmkmP5lotgIjN3/mHtSPQ== Received: from localhost (gaia.codewreck.org [local]) by gaia.codewreck.org (OpenSMTPD) with ESMTPA id 1a78be17; Thu, 23 May 2024 11:38:43 +0000 (UTC) Date: Thu, 23 May 2024 20:38:28 +0900 From: Dominique Martinet To: Christian Schoenebeck Cc: Eric Van Hensbergen , Latchesar Ionkov , Greg Kurz , Jianyong Wu , stable@vger.kernel.org, Eric Van Hensbergen , v9fs@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] 9p: add missing locking around taking dentry fid list Message-ID: References: <20240521122947.1080227-1-asmadeus@codewreck.org> <3116644.1xDzT5uuKM@silver> <2675095.dNBKFZOyUv@silver> 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-Disposition: inline In-Reply-To: <2675095.dNBKFZOyUv@silver> Christian Schoenebeck wrote on Thu, May 23, 2024 at 12:05:44PM +0200: > > I really think it's safe, but I do agree that it's hard to read, happy > > to move the `h = &dentry->d_fsdata` inside the lock if you prefer -- it > > compiles to the same code for me (x86_64/gcc 13.2.0) > > No need, you can add my RB. Thanks for the clarification! > > Reviewed-by: Christian Schoenebeck Thanks! I've fixed the typo in the commit message and queued it up in -next, will send this patch and the trace uninit fix to Linus early next week. -- Dominique Martinet | Asmadeus