Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp612928rwe; Fri, 14 Apr 2023 07:33:01 -0700 (PDT) X-Google-Smtp-Source: AKy350Z74FYMvRDcV4QeyNFTRGGMb27S5Hz6wBdRWBVJm6JJdfiotHmOCFEqpxjMbUrUF9Srbgnw X-Received: by 2002:a17:903:32c6:b0:1a6:48e6:ea8e with SMTP id i6-20020a17090332c600b001a648e6ea8emr3115399plr.4.1681482781244; Fri, 14 Apr 2023 07:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681482781; cv=none; d=google.com; s=arc-20160816; b=MQK2hLmhtYW5u9+C0kkZZQYDnS3FK91EWb2aMk3DrBpMZHLjPXdX4EJ0V4m5ovtexG DslTgHo3XRUp5dnPONmCy0kejh8kfTpkPrtX8F1pvWFfMTNMuG5195RHJLa5ui6G0lU7 5JBB6ogQ5T80Ffhxr/t5qIqjZgLz3UJuetleK1JhE86oORvbL9POGJPXDxexEbtWBybv 9CRX+GofTH+xLYXdcq4+PRaxJL5kjhSb4R6pt7c+agyaYUqzadKhS0y80WBOFOGY+a1i SSCkj6ddZsHmx1RqTe8K5/3ghbMqSq2ner7bnTfAMqwnQXfeLfKHvDHVjnqZBoKwPSnl wmsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=ciNfkS+DqWy2PbM1VAL60cecuqn9PuTT/O3WDgTfYTE=; b=xefhuUTy+bZvXNDfELclPJaBNBEwF9/ykCa1viO7w6Zxf7mis8pBL2ugmzf3f8b/QF kEo1AWaWtHQfNw4xaUotm+qFH9na3d5D7gKHo3++Pjfx10NObcCewh3RCQ3V1fFj7v0F iQy1jgp+jJwMK/JQXZvLKix5ut9Agi1yYDNEuCGdY0lYJEZV1O1IC2tew2SFzUiGIqhB X49zYnrb9z/AL5NlYxihM180DCCVcCLxcYk6A30O0he4xj/jFxxaKyJU3yGdPjEGJHrj Qr42wfIJGWdtSqIbG70Yd8EVQ+RDgDQZ00UxkBRCKhcE6o6FTChIg7ABDdgPbQUohwVZ z11Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aDekCmm9; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id on13-20020a17090b1d0d00b00246cc751c69si8078433pjb.10.2023.04.14.07.32.46; Fri, 14 Apr 2023 07:33:01 -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=@redhat.com header.s=mimecast20190719 header.b=aDekCmm9; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229965AbjDNObV (ORCPT + 99 others); Fri, 14 Apr 2023 10:31:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229841AbjDNObU (ORCPT ); Fri, 14 Apr 2023 10:31:20 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 842F7C669 for ; Fri, 14 Apr 2023 07:30:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681482576; 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: in-reply-to:in-reply-to:references:references; bh=ciNfkS+DqWy2PbM1VAL60cecuqn9PuTT/O3WDgTfYTE=; b=aDekCmm9SmvVEk0ySrICT0hO/ZDr6X8m5hAFduBYqrUY8lqrNqphBdeR4T4DnOc6e3fZj5 yJ1VLrLc1cworLTHHIgL38UROlJV8zV9HHqY7jQZMMHPrG1B/3OD7oeThpEh+TocuKACn0 ahgxxi6Jqsj5T2AVxET7wRUzhOAxNGk= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-249-EoPoNaIHML2vNSd8Jdfyvg-1; Fri, 14 Apr 2023 10:29:35 -0400 X-MC-Unique: EoPoNaIHML2vNSd8Jdfyvg-1 Received: by mail-wm1-f70.google.com with SMTP id f14-20020a05600c154e00b003f0a04fd5b6so3825902wmg.9 for ; Fri, 14 Apr 2023 07:29:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681482574; x=1684074574; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ciNfkS+DqWy2PbM1VAL60cecuqn9PuTT/O3WDgTfYTE=; b=FNJnmKmYCqm+1vqnww3pjnUfIrjQEa1VLAXNoiY8VLcM4ueJH3qVrw66liDWFn0Fyu cseI/NWuM0CFRmt6bBDEYrxt2bl0uzHuR2yUMmMEU6+h0Y/+RodUQa9SnxhdMbF9rXEG c/k/JOteFFdeYBFVmIHwuujyJnbwtpTvI7orWXXKMecX5uU/vEeh/H+/ZVH8DgN2LJ46 9/22pbteC/nstdi68f+VZbmmpu3VdJzFBhuTR5crRFbWV8m3+i3OnUlw8WX+AAruA3Gy VD64S2Z7y8aoH3hVU5khMegYvsNqMDiQmt14tPlSS47oCTpMi3NFSuAqWcWWPqx8g2qg aY5Q== X-Gm-Message-State: AAQBX9eoYVM57Pwz5/PFKmDr1le47uhR9OGIw+jxIliD1nUfYKRycQzW m8qL2r1gQOtFvcJNRe9dt0Ds3Sks54K24JRzppYGCiWfJLM+sqk/6p6iktUNB0QgPiw3rFIvOWh 6zrGKzJfTb05xzNEK9RJ+UrxM X-Received: by 2002:a05:600c:c8f:b0:3ed:2346:44bd with SMTP id fj15-20020a05600c0c8f00b003ed234644bdmr3977790wmb.19.1681482573910; Fri, 14 Apr 2023 07:29:33 -0700 (PDT) X-Received: by 2002:a05:600c:c8f:b0:3ed:2346:44bd with SMTP id fj15-20020a05600c0c8f00b003ed234644bdmr3977775wmb.19.1681482573551; Fri, 14 Apr 2023 07:29:33 -0700 (PDT) Received: from ?IPV6:2003:cb:c702:5700:cb5b:f73a:c650:1d9? (p200300cbc7025700cb5bf73ac65001d9.dip0.t-ipconnect.de. [2003:cb:c702:5700:cb5b:f73a:c650:1d9]) by smtp.gmail.com with ESMTPSA id c9-20020a05600c0a4900b003ee6aa4e6a9sm8242103wmq.5.2023.04.14.07.29.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Apr 2023 07:29:33 -0700 (PDT) Message-ID: <032003fc-997e-4dad-84d4-1590aeedc8ff@redhat.com> Date: Fri, 14 Apr 2023 16:29:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH 5/6] selftests/mm: Rename COW_EXTRA_LIBS to IOURING_EXTRA_LIBS Content-Language: en-US To: Peter Xu Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Axel Rasmussen , Andrew Morton , Mike Kravetz , Nadav Amit , Andrea Arcangeli References: <20230413231120.544685-1-peterx@redhat.com> <20230413231120.544685-6-peterx@redhat.com> <1a2544eb-7d42-eda3-fafa-9bed1377841d@redhat.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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 14.04.23 15:56, Peter Xu wrote: > On Fri, Apr 14, 2023 at 11:52:40AM +0200, David Hildenbrand wrote: >> On 14.04.23 01:11, Peter Xu wrote: >>> The macro and facility can be reused in other tests too. Make it general. >>> >>> Signed-off-by: Peter Xu >>> --- >>> tools/testing/selftests/mm/Makefile | 8 ++++---- >>> tools/testing/selftests/mm/check_config.sh | 4 ++-- >>> 2 files changed, 6 insertions(+), 6 deletions(-) >>> >>> diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile >>> index 5a3434419403..9ffce175d5e6 100644 >>> --- a/tools/testing/selftests/mm/Makefile >>> +++ b/tools/testing/selftests/mm/Makefile >>> @@ -161,8 +161,8 @@ warn_32bit_failure: >>> endif >>> endif >>> -# cow_EXTRA_LIBS may get set in local_config.mk, or it may be left empty. >>> -$(OUTPUT)/cow: LDLIBS += $(COW_EXTRA_LIBS) >>> +# IOURING_EXTRA_LIBS may get set in local_config.mk, or it may be left empty. >>> +$(OUTPUT)/cow: LDLIBS += $(IOURING_EXTRA_LIBS) >>> $(OUTPUT)/mlock-random-test $(OUTPUT)/memfd_secret: LDLIBS += -lcap >>> @@ -175,11 +175,11 @@ local_config.mk local_config.h: check_config.sh >>> EXTRA_CLEAN += local_config.mk local_config.h >>> -ifeq ($(COW_EXTRA_LIBS),) >>> +ifeq ($(IOURING_EXTRA_LIBS),) >>> all: warn_missing_liburing >>> warn_missing_liburing: >>> @echo ; \ >>> - echo "Warning: missing liburing support. Some COW tests will be skipped." ; \ >>> + echo "Warning: missing liburing support. Some tests will be skipped." ; \ >>> echo >>> endif >>> diff --git a/tools/testing/selftests/mm/check_config.sh b/tools/testing/selftests/mm/check_config.sh >>> index bcba3af0acea..3954f4746161 100644 >>> --- a/tools/testing/selftests/mm/check_config.sh >>> +++ b/tools/testing/selftests/mm/check_config.sh >>> @@ -21,11 +21,11 @@ $CC -c $tmpfile_c -o $tmpfile_o >/dev/null 2>&1 >>> if [ -f $tmpfile_o ]; then >>> echo "#define LOCAL_CONFIG_HAVE_LIBURING 1" > $OUTPUT_H_FILE >>> - echo "COW_EXTRA_LIBS = -luring" > $OUTPUT_MKFILE >>> + echo "IOURING_EXTRA_LIBS = -luring" > $OUTPUT_MKFILE >>> else >>> echo "// No liburing support found" > $OUTPUT_H_FILE >>> echo "# No liburing support found, so:" > $OUTPUT_MKFILE >>> - echo "COW_EXTRA_LIBS = " >> $OUTPUT_MKFILE >>> + echo "IOURING_EXTRA_LIBS = " >> $OUTPUT_MKFILE >>> fi >>> rm ${tmpname}.* >> >> Reviewed-by: David Hildenbrand > > Oops, I planned to drop this patch but I forgot.. I was planning to use > iouring but only later found that it cannot take RO pins so switched to > gup_test per your cow test. Hence this patch is not needed anymore. > Yeah, it's unfortunate ... I briefly thought about adding R/O fixed buffer support, but it looked like more work than eventual benefit. > But since it's already there and looks like still good to have.. let me > keep it around with your R-b then. Yes, makes sense to me. -- Thanks, David / dhildenb