Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6786916pxb; Wed, 17 Feb 2021 13:28:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJzG8XYrRb+hUseZfatyPCOq410IqpTPKIoogVL4HBh/rGJSzeZT3AVii4jNaQumt4+mFzKy X-Received: by 2002:a17:906:2b56:: with SMTP id b22mr931501ejg.158.1613597337741; Wed, 17 Feb 2021 13:28:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613597337; cv=none; d=google.com; s=arc-20160816; b=T09NRdms1uxbxMNvdAd7guNwrLgt0znRkvYM/eoSZ1Xq4wCnUpEEqtigfrFVVYzix5 V+oJVHFJQi7hmH9xw8uTIW6ETiS0R7iEQ2CnodphcyGSFV+thIfIV1CvpOf8HNnWZGu5 lb6J0eSo6iJ1PmE5ToMAx2DzrCJo6YHdNRz9cb4d4MKrhieXXP+B8uiFY3AzCT7NyZiI zHJpPCuGeAccbtUW5BDTg03Nc4Sp+VrRCuZGWUSjT2/NJykKrwkMStJcB3pNWYfvIhKP M1Ah1AMbnAOCV6fmWSRPykOCVpqlkvAVuf8GqmkRax4Lu+q+DaZeimqP53bYUEwV3tRk tQCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+QiMwQdRUcPLnja4B/hwgwVfd5Ka44yMq76PcR+cIX4=; b=vRqXGjEzM1BCWSFoCx4y+BHTYHMd/hXZ6y1jyJKr2A0oN+wNJpwnqKowjkWtm2Lkit kyczu/v29Yfwpu4venw5yPKbnl7qnw6HQQNEtRvAPc7ohkKhD6H4URZbSwIXjZQxA504 K8mEaqYiVHEk2jJhA94PakIr784TP4BxhpZ8BZGKw60XMZgZywjgtRhV8A2B7WcvFuHK jvYoAd8GMGv3OMIILyqYybyUxbST360ow6J/KcHNLK9kLQHkRaQalYeQxq5QNvZohlSC mMnSGDFy1+K4b7RtFqMMEP/HgjU3R2fFxO6lksYsvBwjzGU9FgBSfxJUmEQCCX9+XCY/ EG4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=uy6aekCM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s17si2065976edy.424.2021.02.17.13.28.32; Wed, 17 Feb 2021 13:28:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=uy6aekCM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232785AbhBQVNj (ORCPT + 99 others); Wed, 17 Feb 2021 16:13:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231462AbhBQVNf (ORCPT ); Wed, 17 Feb 2021 16:13:35 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E036EC061756; Wed, 17 Feb 2021 13:12:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=+QiMwQdRUcPLnja4B/hwgwVfd5Ka44yMq76PcR+cIX4=; b=uy6aekCMzBzamtXkK9dDlSbcZO hbz9ohlsLmE9j+6C7xPkng0CIkfe6c/1OY/1d4TVimAN64WYWP5Llb18/WKraYoiqKIhg25YM0/Rh /w4RhzcuaY8HFo3OGWGhDt2pbN4BcfVgrW8vckVLv4l5HmjlnoY6DeBfMdKfZZAshVRt3b3G3w5eK OuMsFWE74KVRuhyGixZ7kNP6LsiewwA7Kst16p94+cQEYBS/AE0aXO5C+lU0qBQWk5fNA8zO/ci3G otrojDM6e93H7e3EDd5eL5ivgAFzooHDSvwRXAfYHxMRFnuedp80z8R3/FrDHXW8ILmQyJ4ILhR2F BpJcSk+w==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lCU6p-000syx-Fv; Wed, 17 Feb 2021 21:11:53 +0000 Date: Wed, 17 Feb 2021 21:11:43 +0000 From: Matthew Wilcox To: Minchan Kim Cc: Michal Hocko , Andrew Morton , linux-mm , LKML , cgoldswo@codeaurora.org, linux-fsdevel@vger.kernel.org, david@redhat.com, vbabka@suse.cz, viro@zeniv.linux.org.uk, joaodias@google.com Subject: Re: [RFC 1/2] mm: disable LRU pagevec during the migration temporarily Message-ID: <20210217211143.GN2858050@casper.infradead.org> References: <20210216170348.1513483-1-minchan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 17, 2021 at 12:51:25PM -0800, Minchan Kim wrote: > I'd like to avoid atomic operation if we could. Why do you think that the spinlock is better?