Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2014913ybe; Thu, 12 Sep 2019 03:11:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxp5e5VxCGPDcMJLYA9yGY1rnHl4GgvscwKnWMgN2cDUlkp9gRoRnDsWZG0bLsinIsGKSCb X-Received: by 2002:a17:906:fcc9:: with SMTP id qx9mr33289428ejb.32.1568283102956; Thu, 12 Sep 2019 03:11:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568283102; cv=none; d=google.com; s=arc-20160816; b=F3IbEseRzcOym/NLFlA99ttNM/CNRzNLvCDu3ZJWn/3UmM/i3Lk7rUYSL7RwkCgU5F AAxxeGhlA3EjrE4N/YiM45iRZtbDFdaDqEJrXuhIqF5o4wWqfwcElgRvAgDAzSNTExyz 7l4E1Tbr69U0i4opE3QiO2wjJ8fxKeYUWaC3mNJWBduJYCi78l+clwBztEGvxgcSouGN ycES4o1PWj0JwdNwK/Mgk1/f36sa3BAiWsCsJ1HLNepiXxLCNDcZa6Gzaf1HIUdsZ/t3 e6lg+pu06WVJZbthijkzvxh1R+bJI6Tk688uHeGQrOLcd0aDzzusLI977dzn1eKJN6+3 Ac1w== 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:dkim-signature; bh=aqH8fHtjT3IC/e5deArdd8oGX2wHZ4L9R7PbYi/ofyE=; b=IEJmjPeOoeTv0QKHvO1uKfzQr52uUKvn7pc3d/YI7o2tOOyf3CREWA9ShnkoDiAg6/ t4dHQY0RXl0djCEb55vff0G/65ndWG5W8kFj4nIvG2DTx5D531imK9MPG4Zdcz54B/3q RePeuCqd/uiCAE2Lqc1ya+G59ShK4RQ9qW10vD/XJi+kHKDyNyzrgJnAXiP5gqY1D36A hEg2tmUDR6j9Lr5O+UVuAn+PtyESAxlstx/b2oOxQP68lT+zxg+Y/W/lfJ4zc0JpSwvd cV13uG40dMVNevevtC5ZzeLjA8o3nC8vY1C1+CKb4mge6lT8vknT4F7JksEd33EJVAET uAHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=i0kb28AF; 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 8si15625842edz.299.2019.09.12.03.11.19; Thu, 12 Sep 2019 03:11:42 -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=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=i0kb28AF; 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 S1730982AbfILKGn (ORCPT + 99 others); Thu, 12 Sep 2019 06:06:43 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:36050 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730450AbfILKGn (ORCPT ); Thu, 12 Sep 2019 06:06:43 -0400 Received: by mail-ed1-f65.google.com with SMTP id f2so17065681edw.3 for ; Thu, 12 Sep 2019 03:06:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=aqH8fHtjT3IC/e5deArdd8oGX2wHZ4L9R7PbYi/ofyE=; b=i0kb28AFynzLDWYc/Md76wO+4Lrr7IrS1+6jbZyJp7B8cHfwzc/YZfeotZo+Pv4uZ7 UAKdPDOo0lrmH5R3sOlwBQOxvcLChktxmsEkB+2uTyH+Rq5XfI65O9Z94Z+obWutx07s XzEavAok9ThOFRQDiddgAkrUpPD9vKHfgSV4xMOrhKHaSN0oE7H4Yr4VBAe2HEbZqAnb 9KSSc54fY9hiuvthnxGax8VALweMokoc51TtUn2OguvauYy6k4Wf/eRQakDuDca+32zF nVCVZN16xOi5r9rxTqinPAKy8k7PUWvLiCbD79ga6QA+z7+zIgZuSPfhFacnfdsxQf4c 9vJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=aqH8fHtjT3IC/e5deArdd8oGX2wHZ4L9R7PbYi/ofyE=; b=sqgJ68fCSgZPG+2H/w+LjCE3EEExASPsWVpX3iz2DRMa4rFj5hcpgu6h+xuFsCQEok YPuIQf7CBDxRyXqxHTfgwHxSQ1g5CTP8PvjHO+NaB+9kAeDVNe8P9d+CzSV52NtRzXb8 Zewnbo8dRXWbhKojCWeCgwfqWLRAPyDCAUkc/68pgAD0iIX5cF1BtqztF/E1XQMYuRzE cJIBHnzaNwLzdBSSC/tFZh+oq5gygPCKSJXBuA/dkHkvzb1ANR/sa1BysRPx/B7njqZD cBZ/TP0kpa1ZbWJsuC0Wg1LDHDg+0QU5suBHefeU/g2CPDM1AwZIFcVYGE5zQ02zCBXK Ul8Q== X-Gm-Message-State: APjAAAWJbRanJGPvJtPxCBh9RqVZ3KchuQXM2N+nJ/+P2hmZymsNHYxt ZmUC0n+tmG+TlUPl9HSBOyzuF+4WzWw= X-Received: by 2002:a05:6402:125a:: with SMTP id l26mr4416227edw.95.1568282802039; Thu, 12 Sep 2019 03:06:42 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id n1sm118790ejc.16.2019.09.12.03.06.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Sep 2019 03:06:41 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id 68FF0100B4A; Thu, 12 Sep 2019 13:06:42 +0300 (+03) Date: Thu, 12 Sep 2019 13:06:42 +0300 From: "Kirill A. Shutemov" To: Yu Zhao Cc: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Tetsuo Handa , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 4/4] mm: lock slub page when listing objects Message-ID: <20190912100642.57ycbflh5ykcgttu@box> References: <20190912004401.jdemtajrspetk3fh@box> <20190912023111.219636-1-yuzhao@google.com> <20190912023111.219636-4-yuzhao@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190912023111.219636-4-yuzhao@google.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 11, 2019 at 08:31:11PM -0600, Yu Zhao wrote: > Though I have no idea what the side effect of such race would be, > apparently we want to prevent the free list from being changed > while debugging the objects. Codewise looks good to me. But commit message can be better. Can we repharase it to indicate that slab_lock is required to protect page->objects? -- Kirill A. Shutemov