From patchwork Tue Oct 4 21:41:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Xu X-Patchwork-Id: 12998714 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 3EDF6C433F5 for ; Tue, 4 Oct 2022 21:41:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 966006B0071; Tue, 4 Oct 2022 17:41:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 916726B0073; Tue, 4 Oct 2022 17:41:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7DE246B0074; Tue, 4 Oct 2022 17:41:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 6CC156B0071 for ; Tue, 4 Oct 2022 17:41:30 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 38F831A0853 for ; Tue, 4 Oct 2022 21:41:30 +0000 (UTC) X-FDA: 79984588740.12.4354279 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf17.hostedemail.com (Postfix) with ESMTP id 85C494000E for ; Tue, 4 Oct 2022 21:41:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664919688; 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: content-transfer-encoding:content-transfer-encoding; bh=7Yo5mFoNA/akKDTqGo68e4cp8toeGFfbSMrJL8cvNlg=; b=WkmKEzLnaASyHRrI/BLO3rzLjCLM1rvMQIrh1l3UJUvKqk1R6xyGOTmKo8fAsii4Fnrjdg gfsXEcEOTMsmq0XF2KcEA6Bg0BrO3Efo09P+8QedDl72JKId04qz6siWscTXvzIUcL6V2n cjI55gyFvrG6mEzZFn71yJuMkY5Vrms= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-673-YOl3aclxPrOS7hbMjaQzrw-1; Tue, 04 Oct 2022 17:41:27 -0400 X-MC-Unique: YOl3aclxPrOS7hbMjaQzrw-1 Received: by mail-qt1-f197.google.com with SMTP id e22-20020ac84b56000000b0035bb64ad562so10211524qts.17 for ; Tue, 04 Oct 2022 14:41:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=7Yo5mFoNA/akKDTqGo68e4cp8toeGFfbSMrJL8cvNlg=; b=5x+1aD1LL6cBl6e/9aki4/1zjr4PfwL9rU1pRFmEI6VDhT8foBDzVkdJovoW8wRRAX gPtLAjkhKxyWoozz8J2oCAesyJQf+x9HFm0RwqCtsls0KFeplfZa35LNKTXytEHWTgYC M3gMA0QM/i3ulTPQrPfb3vlc5lMuPoFDJUQtyV+O6JmtytsZUqmDS0/fggulfROLQL/9 O2wwl0Ryzcp6UoegV9vAxaK3hegQs+aehxFSxII4CQJK3KYi0PUqfyLNNPrvVc6FFK2l BquczCMxq5//qILgGKAhM3n/+kLNt6BDTQn2OPsbHkUxmeeAq7NE3nmMMX5aEuwTqLJZ b0Mw== X-Gm-Message-State: ACrzQf13VgP0abtv13zcBxS6aslr00W6mnHWNJIE8UpV19WalgFNdiBP Zzhq02h12cljl9GhIq1pKd8eD2yKBtKT3LfbGag7FcoHCCgsxx0gT/3n0OOr56Wmmvt1NDj+LoW awPsvmLPq+oc= X-Received: by 2002:a05:622a:cf:b0:35d:538c:7b91 with SMTP id p15-20020a05622a00cf00b0035d538c7b91mr21634830qtw.588.1664919687363; Tue, 04 Oct 2022 14:41:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5eJ43Cxi/6zQiWV/bSo8ZFXM9fZ9WcXa6rfp1aDx3I0WOIUGOdMcyE6esB7t52lXwuQpGz5w== X-Received: by 2002:a05:622a:cf:b0:35d:538c:7b91 with SMTP id p15-20020a05622a00cf00b0035d538c7b91mr21634819qtw.588.1664919687145; Tue, 04 Oct 2022 14:41:27 -0700 (PDT) Received: from x1n.redhat.com (bras-base-aurron9127w-grc-46-70-31-27-79.dsl.bell.ca. [70.31.27.79]) by smtp.gmail.com with ESMTPSA id y15-20020a05620a25cf00b006bbf85cad0fsm15519956qko.20.2022.10.04.14.41.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 14:41:26 -0700 (PDT) From: Peter Xu To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Andrew Morton , peterx@redhat.com, Axel Rasmussen , Mike Kravetz Subject: [PATCH 0/4] selftests/vm: Drop hugetlb mntpoint in run_vmtests.sh Date: Tue, 4 Oct 2022 17:41:21 -0400 Message-Id: <20221004214125.120993-1-peterx@redhat.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1664919689; a=rsa-sha256; cv=none; b=70HbNWnyGlKPnbHUL0Z498Egpot9AY+mOQDN6Fpdw8ja48nHIU4P/p8kSFqojEN5s5TDPZ EWGbQh4Z4GuSS80lHnqeFL5nAduBz8EFYyua0TyU/dFjWn0kanaJGKamwv2Zu9uRUJU0qz h6dWF2h/SHxX5ysy2/Z3HolC+xalcNk= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=WkmKEzLn; spf=pass (imf17.hostedemail.com: domain of peterx@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=peterx@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1664919689; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=7Yo5mFoNA/akKDTqGo68e4cp8toeGFfbSMrJL8cvNlg=; b=Nc2bBk0a2tCyIl1e1wMjaQqxv8+MzwTtbPuA8DoY+Fo6kIPJi8UT+83HMrfPkf5RyRuzdw LotVbndI0viUN3rgx/mRquad9/mZKK9BHNaQPzKHzAi/6B73YpN6dnpTSykmiVXsib5KtQ OY1la3ZyP3TuUyKJAJhDlrL3vCnByDA= X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 85C494000E X-Rspam-User: Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=WkmKEzLn; spf=pass (imf17.hostedemail.com: domain of peterx@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=peterx@redhat.com; dmarc=pass (policy=none) header.from=redhat.com X-Stat-Signature: fwg9psp5cqwz4g6tc4yt18d7bktt76s4 X-HE-Tag: 1664919689-983704 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: Since I started working on patch 1 when debugging the race anyway, I cleaned it up so we can use the same memfd for both hugetlb and shmem which is cleaner. Then I figured it's not hard if with patch 1 to replace all the file-based test to use memfd for hugetlbb so I did. Then patch 4 dropped the hugetlb mntpoint for run_vmtests.sh. Please have a look, thanks. Peter Xu (4): selftests/vm: Use memfd for hugetlb tests selftests/vm: Use memfd for hugetlb-madvise test selftests/vm: Use memfd for hugepage-mremap test selftests/vm: Drop mnt point for hugetlb in run_vmtests.sh tools/testing/selftests/vm/hugepage-mremap.c | 21 +++---- tools/testing/selftests/vm/hugetlb-madvise.c | 12 +--- tools/testing/selftests/vm/run_vmtests.sh | 18 +----- tools/testing/selftests/vm/userfaultfd.c | 60 +++++++------------- 4 files changed, 35 insertions(+), 76 deletions(-)