Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2307267yba; Thu, 25 Apr 2019 14:12:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsyFeIkR6BqZTNma/Qa+lrlVmKLfe4x1ZEg5zN6z2mIHFCefKzRZQvpCBp6N7wvi51mcwP X-Received: by 2002:a63:66c1:: with SMTP id a184mr39996846pgc.412.1556226777037; Thu, 25 Apr 2019 14:12:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556226777; cv=none; d=google.com; s=arc-20160816; b=GIXVUcMzWv8B4h/Q4V8dCP1bY0nfD0rSV44+700Msh+2aCb1sp3jt89R+x+jLLz0/H QTbkv8E1BwEMmHr37HG6io/mV4c2L6OdmooswLNB2uMTDbXt++MGvRaePnxbFHIw+lT/ y6IMzFaiGdHodFWTBSRoZu8/p1OmQK+cRKSFOE0Q9xzX6DhrAUGUeVqRUmriFt6EPXtd zTFtA9/YpjW6mAD4RL0dGGAswABtjonMWzRQDaTMTQ4EwjqEZLpCCfbtzTTYrXkOij+l zyizmTqT4rtjz+Gr7uadNgYlaMWkw/Ae4xUNUd/lYDm04Q9oVmvXlPlPsqCn8n9z5aoz NowA== 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=d3CIt5v8ectzqInoADnE99wswPv+W1nMVgiIgTbyt7s=; b=DlrpWFHlHv7baAuHKfEB5EdiQg4gutcpklZmwJjtptVqh6Ko4QNg7T38xoUbcwMg8M R4ES4i+QIp7BlXPFg2s11oyb79aMlkMqW0qp/6PkpHC6EmKQdEWO7t8GOnnAHC86pcEu Y/5/5Af7O1hLTqyH1H7fgW9jl9koaE+kYdQQ04wdGUMafYsduXHERKAkYXL775Xw44+0 S1ZrEMX7FCG7YB45pC+qjw+K8tsoouScZPRFt3Ly2BY5XLRM+8RBMvISgzU5H12zgfNq B/XbQZ/13oPLp3n3PREwnPTFBNDCkTDd5uZuHvTtYl14kP4Xt7X5KnstFl/KWy90rod+ lwGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=V0TFVzLN; 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 r140si22496110pgr.585.2019.04.25.14.12.41; Thu, 25 Apr 2019 14:12:57 -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=V0TFVzLN; 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 S1727422AbfDYSZN (ORCPT + 99 others); Thu, 25 Apr 2019 14:25:13 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:35722 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726206AbfDYSZM (ORCPT ); Thu, 25 Apr 2019 14:25:12 -0400 Received: by mail-lf1-f67.google.com with SMTP id j20so526138lfh.2 for ; Thu, 25 Apr 2019 11:25:12 -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=d3CIt5v8ectzqInoADnE99wswPv+W1nMVgiIgTbyt7s=; b=V0TFVzLNnWWUVnszaJ0/UQAyhreYBK6PghXUFIlTVUzb2Xq5tP8ZEvnT5Uulbeux6F zzgrAgkQmKgzztL1EMaKso1QwX9q2SC0XVcvpBWDUBj7lg1W7MrCiX6OQhpJOMsf8GBS g9IGXOuU53gpws+M+XvC0JK+Um2OWnHg0rFAU= 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=d3CIt5v8ectzqInoADnE99wswPv+W1nMVgiIgTbyt7s=; b=dFBqvpCF88QoMFGf5Ut/7a6Q/AfQzfyCcm4LwTInuv+kS/c69eev2CHaGmcPa9Qmcb BQdzxhpL+c6YoD6Vv04rjj98gg/RO5+DMCVbT91R7aERimrdy/1yXaB8yE2GhtJ+eNUG 5FaF3z/2s3NDt5ncdBLW/vRPYNZjpus3Ga2tqhh+of9CiD3G7t+8nOno2pL/RVomjW30 TieGRp3gjstCZnHYIJDj05pWmjUvnRcApY1OeLrbNHyakxYTqIJU3oIj40mte2A31njy +h6eUqeFi5F/sOZGw4v0r5crdbiVSnZ6iSM1jxYy2ewtV3ScQ0wXkzHVzOeEIacUHjVh H13g== X-Gm-Message-State: APjAAAXPMfpoWBHICNsOUtU5XY8+QIqOqz/cNiRevrr/cHxXRq5ZQ3bj VBFhblepzW6ex020Y6wKml1VKUgbyoU= X-Received: by 2002:ac2:54a9:: with SMTP id w9mr21798765lfk.125.1556216710824; Thu, 25 Apr 2019 11:25:10 -0700 (PDT) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com. [209.85.208.182]) by smtp.gmail.com with ESMTPSA id n9sm5139591lfl.35.2019.04.25.11.25.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 11:25:10 -0700 (PDT) Received: by mail-lj1-f182.google.com with SMTP id v13so536047ljk.4 for ; Thu, 25 Apr 2019 11:25:09 -0700 (PDT) X-Received: by 2002:a2e:3e0e:: with SMTP id l14mr21696301lja.125.1556216709489; Thu, 25 Apr 2019 11:25:09 -0700 (PDT) MIME-Version: 1.0 References: <20190425174739.27604-1-idryomov@gmail.com> <20190425182100.GU2217@ZenIV.linux.org.uk> In-Reply-To: <20190425182100.GU2217@ZenIV.linux.org.uk> From: Linus Torvalds Date: Thu, 25 Apr 2019 11:24:53 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] Ceph fixes for 5.1-rc7 To: Al Viro Cc: Ilya Dryomov , Jeff Layton , 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 Thu, Apr 25, 2019 at 11:21 AM Al Viro wrote: > > I really wonder if 76a495d666e5 (ceph: ensure d_name stability in > ceph_dentry_hash()) makes any sense; OK, you have ->d_lock held > over that, but what does it protect against? Sure, you'll get > something that was valid while you held ->d_lock, but what good > does it do to the callers? If they really have to care about > races with d_move(), which value do they want? I suspect they only care that the data they gather for the network packet is coherent, and passes internal sanity tests. You get either old or new, but at least you don't get "not NUL terminated because the length didn't match the data". Linus