Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp332532imu; Mon, 26 Nov 2018 11:31:35 -0800 (PST) X-Google-Smtp-Source: AFSGD/WCz5wxjWKSK8hWklIcIc70e7zlJBtc95PtTIbS4ZaC0F0Mp7Qq1ZWoNJxdG+HNM4G+Ym+D X-Received: by 2002:a63:9b11:: with SMTP id r17mr26322676pgd.416.1543260695778; Mon, 26 Nov 2018 11:31:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543260695; cv=none; d=google.com; s=arc-20160816; b=FXUOopoRF7YB0cwQSG44wJng8KOsEExIVqP8/kCrbxVunTcUgZx+1RYG6HL08BFiJT idOoWF4nizfdK/ORp7mpH2neYMBBOXG2uhqpcjehp+PTKN1wiJjhBXnptBbyAQHJg7JK tBBVbeb4Q8pfDgnCoAkyySXhQ1hRt9Eh9KmkvMG/9e3fJXKgv+KavU2F4yr0PUqmItcO 4Y58YVUnfwtUnf43h82E7hgtow7p2c3w3Ye8gTO0C1Om+/mURtnyQEzjzI3l2KIk2KdR L+Ttj80/hMjG54BRlsOd8qgfodSTWZ9ELfjTXegBped0MDJeCfU4fyhh2t/5cGRSwR5N Mbfw== 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=KfSiWt4TASYtU/aFn7VLqQdRvKbL6KMMgypgppPpkhY=; b=J4sUt9so3C+AnrpINQdEfbW1Bga6YRp1d5cyQMCza8E5lMBe9qioJKIH2Z8IpxUZ2T qW63wFANzCvZ5/pfPUM/mlYiVi2tzTWepf+45pFyLSN9+i8qIQVlWRryhh90JANEIeUO PHQl/beXRKH09uZBBNuaxdaJ5ockUpI8pP7NKCPFzgh8uALXkh9OZVYh+UynA9dhq1HZ jCdAD1eF+P7xxFV7TXatXH64rDekTDbGSbNsNU/zmhTffUgreyLEdSXZbLB5CfRHu6xT /hKXz69/loNVEzAe2y984/hPPL/kLpFy+B79mjhg+uwz5n4LyAlvjD3xgBSD8KbHvNmi mr+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=N8nG7ZPg; 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 w11si1142542pgp.161.2018.11.26.11.31.10; Mon, 26 Nov 2018 11:31:35 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=N8nG7ZPg; 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 S1726771AbeK0GZf (ORCPT + 99 others); Tue, 27 Nov 2018 01:25:35 -0500 Received: from mail-lf1-f42.google.com ([209.85.167.42]:33506 "EHLO mail-lf1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725884AbeK0GZf (ORCPT ); Tue, 27 Nov 2018 01:25:35 -0500 Received: by mail-lf1-f42.google.com with SMTP id i26so14497852lfc.0 for ; Mon, 26 Nov 2018 11:30:26 -0800 (PST) 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=KfSiWt4TASYtU/aFn7VLqQdRvKbL6KMMgypgppPpkhY=; b=N8nG7ZPglfkvB0ldspGZvLQddmNZyuLR7Z3MR219b49nwAaRPvLcs0SJDtKpcMpL9n zuavdtsP/caU7W+DhTHc047XdfIkaTGOZn2fM9vwxoDm5K0EACXcEH2UClBcfqUj9kOt iQBm/0jYMv5twHMm/OjKlYhn3n6hMjy8T/r5E= 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=KfSiWt4TASYtU/aFn7VLqQdRvKbL6KMMgypgppPpkhY=; b=G/zomABfIhE+QxmUm2SdHtelp4jOleKWg3pUqs3vMubMVwpnHyYjjB4sadSzx+Wafk v+kxd3hTdQw5qYkrKR77/GXzxh+nvueOjxKmWO/mDULPYWnb45P+5PISuyVaezs9OPBC VeWSwgVwBsr6btxvqdvuqO/ShiFChJXx2/q5pLwst6yuyLwmbFAOF7UiJ/Ea+YiwGtbO oPmyX5/wfZzsUNVlHTu/rpNhhItGs3kd9OYpMBIv/So8LKTFqYV7iJfVABTC00qIPIMa Bmsr4GmO/odPtYajrUZTsKoiEBvXl9WrBgC9dtNf5qxDeoNhZEmR4i+EOJnLisZGcclN HBPQ== X-Gm-Message-State: AGRZ1gJIXyA7yR0YC5kFBwF/St09oBhUq6FN2gjBGGoQ/mSEfxoMpb7x iDoYIi2JFvhjIdqeDMBXCDivcRTQAK4= X-Received: by 2002:a19:1cd3:: with SMTP id c202mr17486782lfc.33.1543260625672; Mon, 26 Nov 2018 11:30:25 -0800 (PST) Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com. [209.85.208.177]) by smtp.gmail.com with ESMTPSA id n187sm191831lfn.59.2018.11.26.11.30.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Nov 2018 11:30:24 -0800 (PST) Received: by mail-lj1-f177.google.com with SMTP id n18-v6so17736878lji.7 for ; Mon, 26 Nov 2018 11:30:24 -0800 (PST) X-Received: by 2002:a2e:2416:: with SMTP id k22-v6mr19811291ljk.80.1543260623475; Mon, 26 Nov 2018 11:30:23 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Mon, 26 Nov 2018 11:30:07 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCHi v2] mm: put_and_wait_on_page_locked() while page is migrated To: Hugh Dickins Cc: Andrew Morton , bhe@redhat.com, Michal Hocko , Vlastimil Babka , Andrea Arcangeli , david@redhat.com, mgorman@techsingularity.net, David Herrmann , Tim Chen , kan.liang@intel.com, Andi Kleen , Davidlohr Bueso , Peter Zijlstra , Christoph Lameter , Nick Piggin , pifang@redhat.com, Linux List Kernel Mailing , linux-mm@kvack.org 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 Mon, Nov 26, 2018 at 11:27 AM Hugh Dickins wrote: > > +enum behavior { > + EXCLUSIVE, /* Hold ref to page and take the bit when woken, like > + * __lock_page() waiting on then setting PG_locked. > + */ > + SHARED, /* Hold ref to page and check the bit when woken, like > + * wait_on_page_writeback() waiting on PG_writeback. > + */ > + DROP, /* Drop ref to page before wait, no check when woken, > + * like put_and_wait_on_page_locked() on PG_locked. > + */ > +}; Ack, thanks. Linus