Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1640327yba; Thu, 4 Apr 2019 15:07:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmWfPvw5U92WT7JfSnbkacrVjF7XuMhhE+fVGuQyNk0nQ+KTmD+R0B4B12+GC6IYmL8mvF X-Received: by 2002:a62:121c:: with SMTP id a28mr8494370pfj.58.1554415668487; Thu, 04 Apr 2019 15:07:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554415668; cv=none; d=google.com; s=arc-20160816; b=pMrEyXVkSWBhxYxEz+Xoslo3MhoZSQurmG5kM1v3ghbzh+pZo85KGPxRmjQS70yWnC FHhvgrMFSzSYeNIE43Xf+Nn633+PbBAx8Y1ZzZvlBxLTpg3AJD7DNbx56tQ4eDfFtVJI cq2AAVyUpIPgrzDvS2Ue23HGGtYmUbWpoi4vyLPXQS6DiuB57qRolXUlxwjn7gYB1h6y 1OVRJ33MvJaB9UTJ1OHsF5tMHGBEK9iBb/CYzvrovbVkU3i9m9WiRXjJHG0+CRXvDpt/ bmMSEkAw1E9vszCNi5KnfhY+PqEuPw7tV4/GfPKo5YOmi3Xn0N9ppPsTPm51iGIMIjv5 Yieg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=t2r4RUdx2KLqeGU2q+y5u90TLB8px4mQEQWHCFZECI4=; b=0AXZP3ZaA+i1PtqCRwUAKZ3nkQzEc70orB3UUASsIGd52xwyjFHcEGqZ417dBaH/FD qU3Mi21xkg2m+csuqv1exnRbRmMe1pNZks96yhwcLFO0gk3H4qE/4ooNoytslnJrBU+z 3DsYUIgiqecFgMo7L5SGqlETstUBDPjiYkJK7pkA3YBVJfHmCkuOAyEkivxa/QKn1UPC 15vsv5s32ANO4KhhoS5QKQZ/uPY1Pgbbadqc4fS2RlhwlfXV1MFbnlkUtucYL9pNCL5d 1yxea8ZY+WfrRUs8nOaMpaWncMlcr75XtSoibsmGssjAWQZYayZ0dwlNcIM0nvlMTFG8 qbDA== ARC-Authentication-Results: i=1; mx.google.com; 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 j4si4339699pfc.101.2019.04.04.15.07.32; Thu, 04 Apr 2019 15:07:48 -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; 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 S1730026AbfDDV6q (ORCPT + 99 others); Thu, 4 Apr 2019 17:58:46 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:54638 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728663AbfDDV6q (ORCPT ); Thu, 4 Apr 2019 17:58:46 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hCAN8-0007xG-8f; Thu, 04 Apr 2019 21:58:10 +0000 Date: Thu, 4 Apr 2019 22:58:10 +0100 From: Al Viro To: "Tobin C. Harding" Cc: "Tobin C. Harding" , Andrew Morton , Roman Gushchin , Alexander Viro , Christoph Hellwig , Pekka Enberg , David Rientjes , Joonsoo Kim , Christopher Lameter , Matthew Wilcox , Miklos Szeredi , Andreas Dilger , Waiman Long , Tycho Andersen , Theodore Ts'o , Andi Kleen , David Chinner , Nick Piggin , Rik van Riel , Hugh Dickins , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Torvalds Subject: Re: [RFC PATCH v2 14/14] dcache: Implement object migration Message-ID: <20190404215810.GG2217@ZenIV.linux.org.uk> References: <20190403042127.18755-1-tobin@kernel.org> <20190403042127.18755-15-tobin@kernel.org> <20190403170811.GR2217@ZenIV.linux.org.uk> <20190403171920.GS2217@ZenIV.linux.org.uk> <20190403174855.GT2217@ZenIV.linux.org.uk> <20190404202914.GA16709@eros.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190404202914.GA16709@eros.localdomain> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 05, 2019 at 07:29:14AM +1100, Tobin C. Harding wrote: > > __d_alloc() is not holding ->d_lock, since the object is not visible to > > anybody else yet; with your changes it *is* visible. > > I don't quite understand this comment. How is the object visible? The > constructor is only called when allocating a new page to the slab and > this is done with interrupts disabled. Not to constructor, to your try-to-evict code...