Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1866228rwl; Thu, 30 Mar 2023 02:35:06 -0700 (PDT) X-Google-Smtp-Source: AKy350ZIlzEiqV3kT1QqcX5g++I97HptLvXewLm9IEBOKaDzGJM2vPvLDaMPiLeB+7fAvMdjIKam X-Received: by 2002:a17:906:51cd:b0:931:4285:ea16 with SMTP id v13-20020a17090651cd00b009314285ea16mr1480873ejk.7.1680168906185; Thu, 30 Mar 2023 02:35:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680168906; cv=none; d=google.com; s=arc-20160816; b=mygz5iUFfDJ/RXSFp9qzMW/AtO7O96klf1uyxIfRBv6OYrIYUbFdeqMvwOVKd6OBM9 wway5GgCTdFDUxg7UdL/kT9EpehWxp6ePoXsLKNXIBEjbuRcIWRY/1tdsgzTMilEexPP OKBcPrgwWxnSlhxV4F7uBKtzU6nd+922Ba2oN3i0tCSL3Ybx45gOpvJ6so1sy4wVakmT 4AbsDmda3ke2SquhSkGFJGjY4/SqmEsW2uyQiJVv3bTPH1PS7GCLk6Iy5oXqiiAuMr79 xa1nGApWz55QET0VqzqjIzSnWuf/3lxJ9tWTEQ/TF2tchM5tuoxLmx8yHyhb2h50jjZy H3MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=+XgWAMkX5gl81w36XkfWKNCMFULxOFJmmzo6Xs6xITY=; b=nr1iMdJgZnQO0j2Srfuh0/NHXEASY225Iod1F+lu4FGCSx3jt/d9JlZrMol1bHqxWF G9qtyWenoUfNw4oRrTTG3CdLWdo42USyi1J+IedSdliTveLdno1zn/R9D79StdMxytaP YUaWf1ivaH0mfzpLfQ8UXvPA79c/EZ79mMQHPFvWeVLgC+qNqcIGOcMqXMRpQciHDZ8U CyiB7BwrWrdlPgtMaVvvl9XKxwqq3HoE5DuLe1rEMZee4w/8ZUy191jzhigKykWsEmPf TNtY9HbLeQI3I4tVYFjt+ZT7yl6/br5aTLoRx33jISBaI/D/PTeI62NQZsOECCMUiF0y A9Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BhRqo07s; 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 g16-20020a170906395000b00933106de4b0si30900978eje.845.2023.03.30.02.34.40; Thu, 30 Mar 2023 02:35:06 -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=BhRqo07s; 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 S229584AbjC3JaI (ORCPT + 99 others); Thu, 30 Mar 2023 05:30:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230159AbjC3JaB (ORCPT ); Thu, 30 Mar 2023 05:30:01 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8745C65AD for ; Thu, 30 Mar 2023 02:29:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680168554; 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=+XgWAMkX5gl81w36XkfWKNCMFULxOFJmmzo6Xs6xITY=; b=BhRqo07sNvcxmLdz85lpMeNZAx3mOcDqYEfD7b+78iweTHSR5zJ/zg+fyp5khHH5WGH/tr 3X3YVyROXnypvJutrheX0nAS0mNEvpEDX1rj+x5hKoicFPyByi5NZdXQ40qeWf+iheULIx 7FxZ9nGetVNxwiWJ52Ftd71xRQY+yrE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-544-jczfNWu4OtqMRHX0J7vacA-1; Thu, 30 Mar 2023 05:29:11 -0400 X-MC-Unique: jczfNWu4OtqMRHX0J7vacA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8C7768828CB; Thu, 30 Mar 2023 09:29:10 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id BE8D34020C82; Thu, 30 Mar 2023 09:29:07 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <6F2985FF-2474-4F36-BD94-5F8E97E46AC2@oracle.com> References: <6F2985FF-2474-4F36-BD94-5F8E97E46AC2@oracle.com> <20230329141354.516864-1-dhowells@redhat.com> <20230329141354.516864-41-dhowells@redhat.com> To: Chuck Lever III Cc: dhowells@redhat.com, Matthew Wilcox , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Al Viro , Christoph Hellwig , Jens Axboe , Jeff Layton , Christian Brauner , Linus Torvalds , "open list:NETWORKING [GENERAL]" , linux-fsdevel , Linux Kernel Mailing List , Linux Memory Management List , Trond Myklebust , Anna Schumaker , Linux NFS Mailing List Subject: Re: [RFC PATCH v2 40/48] sunrpc: Use sendmsg(MSG_SPLICE_PAGES) rather then sendpage MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <777294.1680168547.1@warthog.procyon.org.uk> Date: Thu, 30 Mar 2023 10:29:07 +0100 Message-ID: <777295.1680168547@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 Chuck Lever III wrote: > It seems to me that you could eliminate the kernel_sendpage() > consumer here in svc_tcp_sendmsg() without also replacing the > kernel_sendmsg() calls. That would be a conservative step-wise > approach which would carry less risk, and would accomplish > your stated goal without more radical surgery. Note that only the marker is sent with kernel_sendmsg() in the unmodified code; the head and tail are sent with svc_tcp_send_kvec()... which uses kernel_sendpage() which needs to be changed in my patchset. I can make it do individual sendmsg calls for all those for now. David