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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E00CEC433F5 for ; Wed, 20 Apr 2022 14:25:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1FDFB6B0071; Wed, 20 Apr 2022 10:25:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1AD806B0072; Wed, 20 Apr 2022 10:25:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 076566B0074; Wed, 20 Apr 2022 10:25:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.25]) by kanga.kvack.org (Postfix) with ESMTP id E88886B0071 for ; Wed, 20 Apr 2022 10:25:48 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id BBAF822ACE for ; Wed, 20 Apr 2022 14:25:48 +0000 (UTC) X-FDA: 79377481176.05.D052A0F Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf29.hostedemail.com (Postfix) with ESMTP id 6AC8412001F for ; Wed, 20 Apr 2022 14:25:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650464747; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8DSx54ImoIrDcTZ0ltEH183UWHNgTANiSB/5rc9D3JE=; b=CD74VYeI8av+91hx1lAEk/lmekDNyj4XViJg3XyEQkvkj2teteuqUriLbFYGzaAUGXie4j Z7ZfmS79gohssBhQHHokfJ75Yt5zwkLXXQSUOvL+a+uSUunQDoTBrMzoSKkuGHyLSEh5BV OQW8+h5RUWK/KoQ0ZuajIXBOnmzz1VI= Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-458-Ud1gArC4NtKGaCKS4u9xwQ-1; Wed, 20 Apr 2022 10:25:39 -0400 X-MC-Unique: Ud1gArC4NtKGaCKS4u9xwQ-1 Received: by mail-io1-f70.google.com with SMTP id c25-20020a5d9399000000b00652e2b23358so1324687iol.6 for ; Wed, 20 Apr 2022 07:25:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=8DSx54ImoIrDcTZ0ltEH183UWHNgTANiSB/5rc9D3JE=; b=e2KreOck3crsW1rsKFj1+XXO3OcNo70829tgEqt7ulIFl8gTe0WdxqYv6xH8igeIlt boooHmyF1bAMOrXyWql0mhlGquJt8vVIMpvMj4Dby8wkGFBsb4jelyKWLTR/E6z5zqbi aeyeXtb84jy48TyMeva8uXaOyb8gijG9Ybq1uWajrxldopraM5zyXsnkqs3ooPH2uny9 isBT9UPQWjd11t3T/6X1YOKUOOboodUR/wVBAaIvkg4DPyDKrAaDZ9yN9fzJ9kDL1XjB Lh2ZFb7loNAMrsvOkn40phYvgErkP6szexbR5Jib1w+c8ubfaCRxVLlsrvY7xXNtWMj3 G2Qw== X-Gm-Message-State: AOAM531e2olxkMefXXXjALq0HdmCYcJwj9uSaM9+lYi4iqD0Z680lDzp 4JzOlmAU88KauLQQGDPb6PBuMBpcVZ7TThoagLJaDywFdBwOf1oWCKWCDied4zvkBdHR+J5p7KK cARukAn6Zv1o= X-Received: by 2002:a05:6e02:194e:b0:2cc:4e4c:fc9a with SMTP id x14-20020a056e02194e00b002cc4e4cfc9amr3237232ilu.178.1650464738520; Wed, 20 Apr 2022 07:25:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyi8FH0j2gA8lyKO+QYNzf/oX37oN05YYk2uSAyOY7pC5pV0T5sVp835XJOoARGa9P9Xd6aOQ== X-Received: by 2002:a05:6e02:194e:b0:2cc:4e4c:fc9a with SMTP id x14-20020a056e02194e00b002cc4e4cfc9amr3237212ilu.178.1650464738323; Wed, 20 Apr 2022 07:25:38 -0700 (PDT) Received: from xz-m1.local (cpec09435e3e0ee-cmc09435e3e0ec.cpe.net.cable.rogers.com. [99.241.198.116]) by smtp.gmail.com with ESMTPSA id r9-20020a6b6009000000b006412abddbbbsm11320909iog.24.2022.04.20.07.25.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 07:25:37 -0700 (PDT) Date: Wed, 20 Apr 2022 10:25:36 -0400 From: Peter Xu To: Johannes Weiner Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Mike Kravetz , Nadav Amit , Matthew Wilcox , Mike Rapoport , David Hildenbrand , Hugh Dickins , Jerome Glisse , "Kirill A . Shutemov" , Andrea Arcangeli , Andrew Morton , Axel Rasmussen , Alistair Popple Subject: Re: [PATCH v8 22/23] mm: Enable PTE markers by default Message-ID: References: <20220405014646.13522-1-peterx@redhat.com> <20220405014929.15158-1-peterx@redhat.com> MIME-Version: 1.0 In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Rspam-User: X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: 6AC8412001F X-Stat-Signature: 1qwnjx9e78ajeu6aef9b8g34ig9gxwjn Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=CD74VYeI; spf=none (imf29.hostedemail.com: domain of peterx@redhat.com has no SPF policy when checking 170.10.133.124) smtp.mailfrom=peterx@redhat.com; dmarc=pass (policy=none) header.from=redhat.com X-HE-Tag: 1650464747-909140 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Apr 20, 2022 at 09:46:07AM -0400, Johannes Weiner wrote: > My point was simply that for the user it might be easiest and most > intuitive if userfaultfd and its related suboptions are 1) grouped > together and 2) in the MM submenu. Very reasonable request. > Yeah it looks like there is a healthy mix ;) To add to the list: > > - mm/Kconfig has CONFIG_SWAP for the swapon/swapoff syscalls. > - fs/Kconfig has CONFIG_FILE_LOCKING, which adds the flock() syscall. > - Interestingly, fs/Kconfig has CONFIG_MEMFD_CREATE for memfd_create() > which is implemented in mm/memfd.c. > > It seems reasonable to me to move the userfaultfd stuff to mm as well, > especially when it's becoming more than just a single binary question > on whether you want a syscall or not, and has MM-specific suboptions. Thanks for the extra information! Obviously as you said it's growing a little bit. I'll give it a shot later today. -- Peter Xu