Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp767192ybv; Thu, 13 Feb 2020 09:09:11 -0800 (PST) X-Google-Smtp-Source: APXvYqxwHZJDBrLRC2SqwZ7K0es5h+R71p8xInUogpSi9SM/C+vDNxlRQmaMOzot6yH0rjHPpfE8 X-Received: by 2002:a9d:4c81:: with SMTP id m1mr14099740otf.5.1581613751489; Thu, 13 Feb 2020 09:09:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581613751; cv=none; d=google.com; s=arc-20160816; b=XjWMMF2GaMZk9Wf+19u0iMsREZ867kACsz4Ih5m32L6O32vKX4wFJQKaI/kZIyecRE otxj1T7jnFumpPuYlht8cgacUrOnckGr10mm9XHKK/gsDX6c8dniCDYHz21GvjODwst6 trC838N7Jr5nGM5nj4sFEDf6q5FYbeLml8OoKd6S+ctt8pTNJzJitQPiaXrDbXTF8PvO Cn2EUuGe9eRwLxVFtBgeHPEgH8bQfd73ienSlszB3eNeys1XakFG/KCnps7zxkyrxcMr 0E8AkTv47rZe/7p75OT9r3PGe/yLD7AL/c82vs23VdUXHsp+5Lx5IfCCYLm52ja6d8Tm N/SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:mime-version:user-agent:date:message-id :subject:from:to; bh=JoX6HHREPyraDmdl7/OFRnw2pfFRKcbvA7hhKxMMDbY=; b=uvpjKvOfkrMptqs3PQNHPh8VoY+h2rTblJ3nT4tzClWWWexhL0Q6PZj1RgHcCXN3Pk RldgJ0nF6jb198BtRQoptxQA/lRh8lzgsksewpo/HRLv6YobalzKlpRNKlwYjGIQhRAj xZtweG0AbgFpF/UQevtTycEThC/7DzyK9XStIW/95cZJzZ+nrXlJqeCaU8QPi/VLE8ur +1f58EB48EN/+O7SRC4vwS//AN/DT7bKnJJ16brs9HwXmDOdgkjQ+sIoyT3/qsziZQE7 nOXI9GPUduVpb4HbnkBvgj9FjMUfFqfcWwBHmVn/vANV/idoTIReOFEE6mhYY+rp4b29 4OAw== 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 h9si1363983otb.49.2020.02.13.09.08.58; Thu, 13 Feb 2020 09:09:11 -0800 (PST) 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 S1728555AbgBMRHQ (ORCPT + 99 others); Thu, 13 Feb 2020 12:07:16 -0500 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:60437 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727799AbgBMRHQ (ORCPT ); Thu, 13 Feb 2020 12:07:16 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R391e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04396;MF=yang.shi@linux.alibaba.com;NM=1;PH=DS;RN=2;SR=0;TI=SMTPD_---0Tpuiwn0_1581613620; Received: from US-143344MP.local(mailfrom:yang.shi@linux.alibaba.com fp:SMTPD_---0Tpuiwn0_1581613620) by smtp.aliyun-inc.com(127.0.0.1); Fri, 14 Feb 2020 01:07:02 +0800 To: "linux-mm@kvack.org" , linux-kernel From: Yang Shi Subject: [Question] Why PageReadahead is not migrated by migration code? Message-ID: <7691ab12-2e84-2531-f27d-2fae9045576d@linux.alibaba.com> Date: Thu, 13 Feb 2020 09:06:58 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi folks, Recently we saw some PageReadahead related bugs, so I did a quick check about the use of PageReadahead. I just found the state is *not* migrated by migrate_page_states(). Since migrate_page() won't migrate writeback page, so if PageReadahead is set it should just mean PG_readahead rather than PG_reclaim. So, I didn't think of why it is not migrated. I dig into the history a little bit, but the change in migration code is too overwhelming. But, it looks PG_readahead was added after migration was introduced. Is it just a simple omission? Thanks, Yang