Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2800785yba; Sun, 28 Apr 2019 09:19:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvNtwC/fxecQy1a2fH5MO0ZqpU9QQL6T2N1LbqYGVVCHYOcclJAHZj4mUOSAWT57I0tuqI X-Received: by 2002:a63:8dc9:: with SMTP id z192mr11004954pgd.6.1556468350281; Sun, 28 Apr 2019 09:19:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556468350; cv=none; d=google.com; s=arc-20160816; b=H8PBMhXtlQSxQnY0EbKePkXEvgyFYF2Jxx6XMj0o5SdH7lRswk9/VvFh9jfFUsxNqr 0L7BqVr4oMTygGQJWegkz0AEtLMidx/yfd3gA85irUFDnsxjZgehEKiXh2e7A5YYytMJ 7UH6g2gpqYTLEeiNXUyXsaEx7UIxmD0Ii2sQJpeVOLwZ8RKHbTZyit/ZKho6HM2NwFsz PEPEWuNuiZdx8GrvI+w5/bH0eYXVHeKrOh+FiJMp9TwFePl0HB3WdvlMO45ZmIbZfWxV di53e+q09t0HXxlPtTFMtKDkrLhkFjFP+xiXDX9wt3JfdDq7tiP41F9lhcNTJSavt/CM NM5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=31v5qQbvcD68M4C/5ZSq+ipUWFhsFBUjipRngVb73jQ=; b=O0ObTPqrYra7yENbc50A+493lOpeuZonDwv0So/uVMUByEPpoREOv0+4SM4JnJPYhG C0Sop7gtn+Rx7FpaZXUOgbhSEwL1RiLQV6OLjhkbb96ONGl0SySIbjN8ZEyo8Gbq6WFv KMcld9UKGmf44SSkX4V6Uv8Z1P3zQKOIfVg57vVjgYrpWuzMrgg0lSVdS+wj/x99y2sz UcbSKyyf4rfTlQwN3NvHIUv3jyxavimffyppJioV5uBWmB3hAKXUJNVs7ug2HZB0lUHf nVwVff5Qdv92qhl0YzO389Q9o6CA+FNNbvY/Z/Do9Iz1vUIzW9MGLdZ6A31+/0/P3EHP rYOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KL484Oas; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2si2000302pln.360.2019.04.28.09.18.55; Sun, 28 Apr 2019 09:19:10 -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=@kernel.org header.s=default header.b=KL484Oas; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726961AbfD1QSD (ORCPT + 99 others); Sun, 28 Apr 2019 12:18:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:59146 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726818AbfD1QSD (ORCPT ); Sun, 28 Apr 2019 12:18:03 -0400 Received: from tleilax.poochiereds.net (cpe-71-70-156-158.nc.res.rr.com [71.70.156.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D910C20693; Sun, 28 Apr 2019 16:18:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556468282; bh=1SaD5I+zLIUb4wHyGKaUi1WiE1ndGN+AH1sSoln7zW0=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=KL484Oas0TEC31AlJjWiOZ7359uhLrVnXyLq3wfxa8fJnYJbpwHpQByef9lgmEe3W bBbw716/HnNB64mWtVY6UAUwzYtdesxclRtYgFAnQjMdB4NRgWkV6Qu8dEzogba5cG nnAJepQxLHzukn2sMmKBDiXuctpaeT3rIova8qXs= Message-ID: Subject: Re: [GIT PULL] Ceph fixes for 5.1-rc7 From: Jeff Layton To: Al Viro Cc: Linus Torvalds , Ilya Dryomov , ceph-devel@vger.kernel.org, Linux List Kernel Mailing , linux-cifs Date: Sun, 28 Apr 2019 12:18:00 -0400 In-Reply-To: <20190428155216.GB23075@ZenIV.linux.org.uk> References: <342ef35feb1110197108068d10e518742823a210.camel@kernel.org> <20190425200941.GW2217@ZenIV.linux.org.uk> <86674e79e9f24e81feda75bc3c0dd4215604ffa5.camel@kernel.org> <20190426165055.GY2217@ZenIV.linux.org.uk> <20190428043801.GE2217@ZenIV.linux.org.uk> <7bac7ba5655a8e783a70f915853a0846e7ff143b.camel@kernel.org> <20190428144850.GA23075@ZenIV.linux.org.uk> <20190428155216.GB23075@ZenIV.linux.org.uk> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2019-04-28 at 16:52 +0100, Al Viro wrote: > On Sun, Apr 28, 2019 at 11:47:58AM -0400, Jeff Layton wrote: > > > We could stick that in ceph_dentry_info (->d_fsdata). We have a flags > > field in there already. > > Yes, but... You have it freed in ->d_release(), AFAICS, and without > any delays. So lockless accesses will be trouble. That's easy enough to fix -- we could add a rcu_head to it and call_rcu in ceph_d_release instead of just freeing it immediately. I guess if we find that d_fsdata is NULL, we can just treat it like we currently do a negative dentry? -- Jeff Layton