Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2271668rwl; Thu, 30 Mar 2023 08:11:01 -0700 (PDT) X-Google-Smtp-Source: AKy350b+2yXpHCKomXTBsuWfplCaGBO1PaNN1sDksnoqSNqWCcYV7YvhJto5TFOf2McUK8mcVIsJ X-Received: by 2002:a05:6402:34c6:b0:502:1cf6:f52c with SMTP id w6-20020a05640234c600b005021cf6f52cmr3411256edc.4.1680189060737; Thu, 30 Mar 2023 08:11:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680189060; cv=none; d=google.com; s=arc-20160816; b=CTi+3ysgD/rCCFMXSlDjSiSiG859Jw0FSfG8bO3bGxIzNHz6sG9g/CNHefsBdVBcSO wnIMuJXOA/Sg17XohDoiLFpr0uisj5iwf0AusiYD4daa8+dvz8L7ydBG6DERnK1h3A/A RebbMMDwiXnShERTywrpb848jNyGFFEWbl6v8aGQVlo+gigA3iMrqaz84p80j8Gbw/Jt 5ltxZqSg6WBs3UW77ayznt9W1FMLqHN1nCj/NcF2tppG53pyy+kzddIOgqhFU48fvEZx T1q5VG2xRIlRYqRQhctNqDlVDw/yXYwzqspM+iFbfep9UeVhGqEGV6I7MvD7JuLZWi2l eH8Q== 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=flEdophtYQM+tpSiaQIdRAJlRLOhJGfz1jgwJJ1BJnE=; b=HwlGJYIQlc4BLnR0dh9UKgYjSv7lv7wCJ6s9NzZm93PUAVBG0mDiNWzPmbQ6//aXN9 Pd685DPom7bF99emCFszD203Ip2AeTm/kdO/+Y1QgTs71iepghol5Z0fmYWJD+AIYDu/ 1l7UaoM9ux6u4yF7Dq5d9bEYBghV0fAKjsW9oQIMD5kK7yfuXQlyycBughP45kDdRilP L1l9mSyVrFmC5TNDLaj1JFPitpzNTgnmrMXBk6xz5YTLRbKlXL4j1YTFHnCt8StkPF+c evVckCllnsyrkCKVJ5IXJPbLefx/pzmbiv0Vxp4K6VzHvAnNx7BEb9HPIbI1DTIO6u/h V3fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RdwF3eRY; 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 sg15-20020a170907a40f00b0093a35a98aeasi561855ejc.946.2023.03.30.08.10.27; Thu, 30 Mar 2023 08:11:00 -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=RdwF3eRY; 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 S232770AbjC3PJE (ORCPT + 99 others); Thu, 30 Mar 2023 11:09:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232762AbjC3PI6 (ORCPT ); Thu, 30 Mar 2023 11:08:58 -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 5D70FCC32 for ; Thu, 30 Mar 2023 08:07:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680188853; 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=flEdophtYQM+tpSiaQIdRAJlRLOhJGfz1jgwJJ1BJnE=; b=RdwF3eRYjCT1dUzk77t5/ZIl0VitEAHhjGWCmNE2gk96EmOp6GWMzqf49hFEaMKrMS7zjG hzhtEaUTvfHRdF9AmjjpX74bTgvNkJh7Ad6jWaiS8ZRle+Tb0tWK45ayNG6ZKBYj55LuF3 cjvm2a8fuG6kZyuGLqlsZ40q8cxXmTQ= 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-654-dFQTAMfoPD2U4QyvYcJNIw-1; Thu, 30 Mar 2023 11:07:28 -0400 X-MC-Unique: dFQTAMfoPD2U4QyvYcJNIw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8D419858297; Thu, 30 Mar 2023 15:07:27 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 938B4C15BA0; Thu, 30 Mar 2023 15:07:25 +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: <64259c7b2b327_21883920818@willemb.c.googlers.com.notmuch> References: <64259c7b2b327_21883920818@willemb.c.googlers.com.notmuch> <20230329141354.516864-1-dhowells@redhat.com> <20230329141354.516864-5-dhowells@redhat.com> To: Willem de Bruijn 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 , Chuck Lever III , Linus Torvalds , netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [RFC PATCH v2 04/48] net: Declare MSG_SPLICE_PAGES internal sendmsg() flag MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <854581.1680188845.1@warthog.procyon.org.uk> Date: Thu, 30 Mar 2023 16:07:25 +0100 Message-ID: <854582.1680188845@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 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 Willem de Bruijn wrote: > No need to modify __sys_sendmmsg explicitly, as it ends up calling > __sys_sendmsg? > > Also, sendpage does this flags masking in the internal sock_FUNC > helpers rather than __sys_FUNC. Might be preferable. I was wondering whether other flags, such as MSG_BATCH should be added to the list. Is it bad if userspace sets that in sendmsg()? AF_KCM, at least, looks at it. David