Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp844235yba; Fri, 26 Apr 2019 09:37:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSOLa2s/E/85E2+Wsrxp7YplqLUD12mySFjwws11Vo8QaQ1hEvL+I0lU7cdtfh0ch0Legp X-Received: by 2002:a63:ff04:: with SMTP id k4mr30148675pgi.117.1556296676500; Fri, 26 Apr 2019 09:37:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556296676; cv=none; d=google.com; s=arc-20160816; b=CNMydIORu3D5+ncr1ocUVTE905cVDT7exS/3YyHn4Eik+E5VyGQx69NrI+7iKLd6M6 2ziUdknl0dhLRuTy7BTdBvEv4l+bpJk9pp3QNggMZ/itSoilhtXxOBC+bEObCOUMcvDR DgkGaFqRch7aPkgj/XyCUSo6UGzbiAy9YrTwQSEb+m+mSchXcnfPt0dl/QyBPrZEmkyU ZieUIef0+RaKha7qrEbv985a2h3dAJyBs0rFRXv1vxUG0dhnLsJ+yXjLkQgXP4UEZ9De 7JWWJneEQBoyvRi+/rfxufUFJYaUSorRn8MlAT4h/4Zv/EL1tmlgCoOU4DW5oyOWPoLm Jc0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=DEdb/dXXS4BmabuVj7tMWOPVyS6P8uPlgXYLftrG0EE=; b=grZ7WR5eAZwlCB97CAFnz7JQfiWiYAy1rsFR2bPOYqPuepotJH0qT0bkNT0YlXKg7g +OsEcjISFRkSFTDJfyC4e0FpKKDsFLg6loJQUqZijJRUehskIJ31yknZoF9hrZF3x4W8 99o0KJeSIbi0FqODPTCDxGYTfTijqwQvoW0ixuXz4GWHNwNtHA413mxaQgEmJqjAF0Dy /ucneptVMLNmuY1SrFRT2ucR2A9HkmSJHFkLVdsK/alQqjidt9/MW4DaEPgOnM+pMmcv AR1wx9j//Dave2EuU9ccLqgoibF4I1N8LQ8RAcsflj5LjNm+PPCctW60KOakKihXVnht luOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=h75dC+nG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q18si25216257pls.319.2019.04.26.09.37.40; Fri, 26 Apr 2019 09:37:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=h75dC+nG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726302AbfDZQgX (ORCPT + 99 others); Fri, 26 Apr 2019 12:36:23 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:37732 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726181AbfDZQgV (ORCPT ); Fri, 26 Apr 2019 12:36:21 -0400 Received: by mail-lj1-f194.google.com with SMTP id b12so2310172lji.4 for ; Fri, 26 Apr 2019 09:36:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DEdb/dXXS4BmabuVj7tMWOPVyS6P8uPlgXYLftrG0EE=; b=h75dC+nGCj4qVfVP3NHHhRACGt5wq2lEMV1zHeI3Kn4urKTnUOrgSoQytgde9qbpVM GiVmB9UUGvPuXqMHWTcMf1b+bF9oQArQw9zod389zdpwyU1eUVhD4roCfLsmJb6m6f36 V9ftvlpDloxCg9bY8bUbqmhGa1yeP8oFSSIzA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DEdb/dXXS4BmabuVj7tMWOPVyS6P8uPlgXYLftrG0EE=; b=CCsHPzO8gSZ4k0r8hfUD9sbj7gR3CC3ZoBZOGXt3F90IEi3mj9GlOp15JcDvl35ZLO JQIKiylhKIvckYksZScA8peUuhTvYV3TFd/YWgyLZizhsZ2DzRsZtz5TN+Ab49j73aM5 fPSGEvA07itvZgbIN7qTfc8bSCXVfgXWpckaJwsF65NfBI9I32XwIZGGNqgkPdpLvuu8 xeC+xJ3/x01I71664q7u7vqSiCck2ktoq+tu7vMK1nYlKZS4LPb9bkBU0LcGx3mae6A8 3yfZJFBSEek63tHaKWf53HccaCP++bHzSGSwG82Xj15EHq+OQkNX0NgqDlyxew+bMRCE r0NQ== X-Gm-Message-State: APjAAAWaXJvxVsdxkqCOurw7eb9H4hdixU/TwRIFpcjtJ2zw263kIj8M fG6C6co6QumUc/g5jAhjQsYCmQm4qd8= X-Received: by 2002:a2e:7a09:: with SMTP id v9mr24209284ljc.167.1556296578355; Fri, 26 Apr 2019 09:36:18 -0700 (PDT) Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com. [209.85.208.174]) by smtp.gmail.com with ESMTPSA id p11sm2862203lfh.27.2019.04.26.09.36.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Apr 2019 09:36:17 -0700 (PDT) Received: by mail-lj1-f174.google.com with SMTP id q10so3487707ljc.6 for ; Fri, 26 Apr 2019 09:36:17 -0700 (PDT) X-Received: by 2002:a2e:960b:: with SMTP id v11mr24952343ljh.135.1556296576721; Fri, 26 Apr 2019 09:36:16 -0700 (PDT) MIME-Version: 1.0 References: <20190425174739.27604-1-idryomov@gmail.com> <342ef35feb1110197108068d10e518742823a210.camel@kernel.org> <20190425200941.GW2217@ZenIV.linux.org.uk> <86674e79e9f24e81feda75bc3c0dd4215604ffa5.camel@kernel.org> In-Reply-To: <86674e79e9f24e81feda75bc3c0dd4215604ffa5.camel@kernel.org> From: Linus Torvalds Date: Fri, 26 Apr 2019 09:36:00 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] Ceph fixes for 5.1-rc7 To: Jeff Layton Cc: Al Viro , Ilya Dryomov , ceph-devel@vger.kernel.org, Linux List Kernel Mailing Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 26, 2019 at 9:25 AM Jeff Layton wrote: > > Is it really ok to union the count and rcu_head there? It should be fine, because the rcu_count should only ever be used once the count has gone to zero and the name cannot be found any more. And while RCU path walking may find and use the *name* after the dentry has been killed off (but not free'd yet), all the actual external_name() accesses should be serialized by the dentry lock, so there's no access to those fields once the dentry is dead. At least that's how it's supposed to work. Al would be the final arbiter on this. Linus