Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4300344ybl; Mon, 26 Aug 2019 08:24:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIrW3lfu0AaAZzVRNhK8zGpouX3bTC7aYXgxIisZGG3bJS4rJG5BEL0/ttSoHPxsYy+GhZ X-Received: by 2002:a63:a35c:: with SMTP id v28mr17140926pgn.144.1566833095121; Mon, 26 Aug 2019 08:24:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566833095; cv=none; d=google.com; s=arc-20160816; b=ou+jESpUKjzXFV8C8/kE8qrZiRUFZOTqPuwRoRWhoNCH3c3OrY2Q0xiCt7ume4x5xx Nx2uzMg7deMFlQX6pyRy2YSd9PoR9mi03eL8FazOEM5sMQ8oITvSEYVajPnFExjcjqTj 3twMvUIMb1Uzij0yXQQac5q8iS4+0oWZp/ropEGHV5si6h92ZUMFw1EJffGnR1x+wIPd eepoBRxSN9P+mPvjJ141CRFeNxg8VwZKSp4fLik/37pvfSMQe4Wje5obGMSAWHqUv8P5 R6q1tX2GQ/nf6A4xODUsphiVQGgrtRSZK60L2KqRB1JUZjbY2g/L48Oz5Ez6vnyYAZA7 NN2g== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=UcN4N0Mc6mRSqKofynEfHasuZsTLynMCmF//6moy3/0=; b=BDpEkK55L6jrz7n0E24sf8OFwab7cBPXgbBYnti3HGp5mzkvmNDKNeJCKxETm+9W6a oUDwsGr5fLadz1qSn6thcEVcpTI0DVBRI/mAQCSKQ46G87z/uGi0ir5ufevldq8a6n5e rWVTpJUo8bnNswUViD6aiOtZWwWv0OY9i67rHPK/Ymjw6R39OD+r97HkDDIyZ1okVdpE 13CTHEB73a9ionuuFBO4k5RMwH1CkFq+oiPhUn4woAQIfnxXHCeuDqi8vFwTRJSav75g PMTmTSSvDsrT0etYdTsqsmfPrVnxiH6jtruhCEjLTzrkbOa/AFcAUbUzJIMxNNDlCYgm kG/A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si10355263pla.342.2019.08.26.08.24.39; Mon, 26 Aug 2019 08:24:55 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732360AbfHZORa (ORCPT + 99 others); Mon, 26 Aug 2019 10:17:30 -0400 Received: from out30-42.freemail.mail.aliyun.com ([115.124.30.42]:50628 "EHLO out30-42.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729138AbfHZORa (ORCPT ); Mon, 26 Aug 2019 10:17:30 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07417;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0TaX0VPG_1566829040; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0TaX0VPG_1566829040) by smtp.aliyun-inc.com(127.0.0.1); Mon, 26 Aug 2019 22:17:23 +0800 Subject: Re: [PATCH 03/14] lru/memcg: using per lruvec lock in un/lock_page_lru To: Konstantin Khlebnikov , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Mel Gorman , Tejun Heo Cc: Johannes Weiner , Michal Hocko , Vladimir Davydov , Hugh Dickins References: <1566294517-86418-1-git-send-email-alex.shi@linux.alibaba.com> <1566294517-86418-4-git-send-email-alex.shi@linux.alibaba.com> <936eb865-d8da-8e53-3e2b-6858c586aa49@yandex-team.ru> From: Alex Shi Message-ID: Date: Mon, 26 Aug 2019 22:16:58 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <936eb865-d8da-8e53-3e2b-6858c586aa49@yandex-team.ru> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2019/8/26 下午4:30, Konstantin Khlebnikov 写道: >> >>   > > What protects lruvec from freeing at this point? > After reading resolving lruvec page could be moved and cgroup deleted. > > In this old patches I've used RCU for that: https://lkml.org/lkml/2012/2/20/276 > Pointer to lruvec should be resolved under disabled irq. > Not sure this works these days. Thanks for reminder! I will reconsider this point and come up with changes. Thanks Alex