Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35718779rwd; Mon, 10 Jul 2023 11:27:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlH/DJ1LCcFY0PsdKqK9gs0Zsz4n0z+fc2d5VdLOvbtSyv2Wk03wO6cvUl7a61zjj1WcgdGr X-Received: by 2002:a17:902:ab88:b0:1b8:918d:ac48 with SMTP id f8-20020a170902ab8800b001b8918dac48mr9957722plr.56.1689013624030; Mon, 10 Jul 2023 11:27:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689013624; cv=none; d=google.com; s=arc-20160816; b=onNIClkM1DWhzT2V7TojEduFGVMI4RsNZkvPM1GX53Xwi1puwcIErbm6/oGYOaBwiu gr3vGNj9yEEcr/qQT1ARThlW4lc7TkB/zu2eU9vdYHr94c4sNvGIcnpqq/ukOFV3izh3 Z26iKRJYtDFomlqmP4SzWyYFWZe5CQWWbwuuyrt4Di6fvzmxsekChlwOxM49aTVuEdzC kOXnURjNg+ViC49LF2ULPZvlWka7fIVa08k7gITpgfwtbX0M9HhlkcT8qFXAMmE8HCh9 CXyB9lV6OqfFaQSixgtl/dIpwLpbaiZ5uihzMGVLXOTZeSRwP093HpxudkHPf+1yt4j3 PIgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=qUzXCzHDtsBOWe+bKKtFjsi637OpN1F95ddxn0q8hxY=; fh=GZ8AjSm4D/pvo/TqdQfRmssmRrWh0l+thXU+IX781EA=; b=ObfU3p8KhsQ/VEKNUiXwYMGnfjSCLrfulfiVAV1TpNUdWBsW5ozCIxpMdx7JWht68b kKvoQ1qqHkjPG0rKli1iqQElPj2S+QaJ1LDH4nNHqSSyDoRlH/fp6QHcgWT3PoIIRNgc pTcCWRbXeHABrFLqTSEHdxqn9hiyD2JSe7+vUuoldnhKf/Nt1okTISSf0Ls/uJAE265o ZbR1yWl30FJHldLylfIpEavFu7flMULlcLywVEWfvALJsAkhdKlSaVCWBZAswqhn2WAd 2NPiFQX42sn65Tpg7SeQ7t2rPYM63enWHk6GfX047559ntPwLhYbwsdixcsSFj1f2kCF yboA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=PZWAQvpH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id je1-20020a170903264100b001b8b3dcbf77si193459plb.354.2023.07.10.11.26.52; Mon, 10 Jul 2023 11:27:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=PZWAQvpH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231618AbjGJRJE (ORCPT + 99 others); Mon, 10 Jul 2023 13:09:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231304AbjGJRJD (ORCPT ); Mon, 10 Jul 2023 13:09:03 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D635A128 for ; Mon, 10 Jul 2023 10:09:01 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-992dcae74e0so622759766b.3 for ; Mon, 10 Jul 2023 10:09:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1689008940; x=1691600940; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=qUzXCzHDtsBOWe+bKKtFjsi637OpN1F95ddxn0q8hxY=; b=PZWAQvpHgPUSANsJa/B9f1rPlQFnV0lh6zBRJrDKvXAaRtN8UcvT77e7VwVxB8azXj vDvRukLJK+z8JLzRjyWyQwDKx65b1IgIvSgluiZN4A8POF7IxxDqw+1u22PtdDUku9yN z/woIJ7FIQKPCG69WzPC7n74uXh0F946sDTkFhrXCXKEUpWXwklt7jyXIFzNlare6RI5 Sge3/7A4SQyi1NQS0dnC/BnMMnw9V1Jz8rt7j2rA0KA0gjm0FVeYuN+l3H0wWCsvJtKv vbGg3qDhRcmp5+4JZ3VsXON1sj4ZLdbKSGUoJkrMHC9WAymYQL1jEAu9Wmukq20Mx74A p0Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689008940; x=1691600940; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qUzXCzHDtsBOWe+bKKtFjsi637OpN1F95ddxn0q8hxY=; b=K7bzMWLhkjQ4/C3M9ylOg41pkdkw5RuM9dZVfPiiH2aBGVWFVF8v+cktC32ZlfvOg6 EmRh6co5aPWX7SKOcZyctqge9GHyCPeB0wjGv3i00gPnOpqNQJoKwsZbKJp+pz3D5+Iv RWD7woniRhOV0WJl3+ZUYbAkrIf+vIfStSU5/AFqRimzbELJbmIpz8jvTTVv9l0TPgq9 vJruxB+oSBKGeT9UElSbGeLywuKfGbGB1VtDx8WV3u7Ilg0ti/F/MQMFNYrfP/1g0PG0 tBPqrpa1sPFoakZH+KfbOnDkYQKvFwCmnOqK7I+Ashulk2LAIrl6OXNcS1/BWUWU18Nu CY+g== X-Gm-Message-State: ABy/qLZZaY4TsRjiHNfeOLwb6A4wnKn4XH4KLcDm0UlqBpuyXTzmlIGb CQHu5OZ6NJ5b/xvRshkehBVTSnR9L5+O0V0zSqIF6g== X-Received: by 2002:a17:907:7f89:b0:98d:cacb:888f with SMTP id qk9-20020a1709077f8900b0098dcacb888fmr18460583ejc.49.1689008940175; Mon, 10 Jul 2023 10:09:00 -0700 (PDT) MIME-Version: 1.0 References: <20230707215540.2324998-1-axelrasmussen@google.com> <20230707215540.2324998-8-axelrasmussen@google.com> In-Reply-To: From: Axel Rasmussen Date: Mon, 10 Jul 2023 10:08:24 -0700 Message-ID: Subject: Re: [PATCH v4 7/8] selftests/mm: refactor uffd_poll_thread to allow custom fault handlers To: Peter Xu Cc: Alexander Viro , Andrew Morton , Brian Geffon , Christian Brauner , David Hildenbrand , Gaosheng Cui , Huang Ying , Hugh Dickins , James Houghton , "Jan Alexander Steffens (heftig)" , Jiaqi Yan , Jonathan Corbet , Kefeng Wang , "Liam R. Howlett" , Miaohe Lin , Mike Kravetz , "Mike Rapoport (IBM)" , Muchun Song , Nadav Amit , Naoya Horiguchi , Ryan Roberts , Shuah Khan , Suleiman Souhlal , Suren Baghdasaryan , "T.J. Alumbaugh" , Yu Zhao , ZhangPeng , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 8, 2023 at 8:02=E2=80=AFAM Peter Xu wrote: > > On Fri, Jul 07, 2023 at 02:55:39PM -0700, Axel Rasmussen wrote: > > Previously, we had "one fault handler to rule them all", which used > > several branches to deal with all of the scenarios required by all of > > the various tests. > > > > In upcoming patches, I plan to add a new test, which has its own > > slightly different fault handling logic. Instead of continuing to add > > cruft to the existing fault handler, let's allow tests to define custom > > ones, separate from other tests. > > > > Signed-off-by: Axel Rasmussen > > Acked-by: Peter Xu > > PS: please remember to update manpage after it lands. I still have a pla= n > to update but not yet happening; if you happen to update before mine plea= se > feel free to update for whatever is missing. Will do! > > Thanks! > > -- > Peter Xu >