From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1516CC433DB for ; Wed, 17 Feb 2021 21:13:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DE54561494 for ; Wed, 17 Feb 2021 21:13:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232782AbhBQVNi (ORCPT ); Wed, 17 Feb 2021 16:13:38 -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-fsdevel@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?