From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76BA1C47088 for ; Wed, 30 Nov 2022 11:50:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233453AbiK3LuF (ORCPT ); Wed, 30 Nov 2022 06:50:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233414AbiK3LuE (ORCPT ); Wed, 30 Nov 2022 06:50:04 -0500 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 CA11E45A06 for ; Wed, 30 Nov 2022 03:48:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669808928; 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=ew+rmcqxH2n7lRVyzxgZ+S2EuF0zHGkt1auf+7rBZUw=; b=ApxrAYcd0UaHEIN1AXSFwQwpeBPDO69ma8854TcKzRMnIPcrvFaPRY1aLReVPovZUtimTi 1S8GmMPfSj5d3U5vO7AkcvBcnKmmUkPm94DSLjyEsYE00kbpSsCRhaGUwkywbMeRFUpmlU yjjOZAZdSkY18zIaMWfjUOpJjV/988s= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-474-0whykiEnOwOAhx5zh9cRkg-1; Wed, 30 Nov 2022 06:48:43 -0500 X-MC-Unique: 0whykiEnOwOAhx5zh9cRkg-1 Received: by mail-wm1-f71.google.com with SMTP id ay40-20020a05600c1e2800b003cf8aa16377so9295683wmb.7 for ; Wed, 30 Nov 2022 03:48:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ew+rmcqxH2n7lRVyzxgZ+S2EuF0zHGkt1auf+7rBZUw=; b=nqczkJih6JDCrLw1Jr0Vjyn8ZJEDNhTYGROVPEHo9QCHaLbgEncn/lfI9kal2aSr6p ogFNYCrDxYqgpOORm+SLMtaHm4LFsaPQboCtU5s5y37XKDxvPuVpie8o2ay+mYHRvF/2 kHeDzPnUdjJjXXNFKAhy7eLKT5QJfC6ipeS1bQga00LRMwXnBTopS7LUMlZ7GVQYKjO5 GK1lDgghrPlwdSxM9Kd9oJRmZYZZqqjui/0Anc3blweJJowdBlUh6asL6wwYOffvgUBm ka7sDlEche4ETx6hwXMnqiey54YzYQ/PpBmlax0uTpqgVLzWeXsG+C2ZDN5NWNEKAY6E h3EQ== X-Gm-Message-State: ANoB5pkLe3e5iXKKUIdbbv5op33lG3xKAqe3Q8VH6HXM/b1kZ7Mq2WNJ b2TsNwe8A2T2ra8cR2/24DkYGE/JFAeDWe9iiiOV4CfJRzBv9cUwbd1yHW5WXuOOcgtI8T1ea/o c7wwDq2ICbMD8c8Y8 X-Received: by 2002:a5d:5f04:0:b0:241:e9a6:fb3 with SMTP id cl4-20020a5d5f04000000b00241e9a60fb3mr22408083wrb.462.1669808919571; Wed, 30 Nov 2022 03:48:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf71i1QvnhhrXaTwa+I+8EpX/qnDqrYR4GbrQTWzEGi7bUvVncNy/xc2a74B4erNgTJKDcQn3Q== X-Received: by 2002:a5d:5f04:0:b0:241:e9a6:fb3 with SMTP id cl4-20020a5d5f04000000b00241e9a60fb3mr22408062wrb.462.1669808919318; Wed, 30 Nov 2022 03:48:39 -0800 (PST) Received: from pc-4.home (2a01cb058918ce00dd1a5a4f9908f2d5.ipv6.abo.wanadoo.fr. [2a01:cb05:8918:ce00:dd1a:5a4f:9908:f2d5]) by smtp.gmail.com with ESMTPSA id 16-20020a05600c22d000b003b497138093sm1620841wmg.47.2022.11.30.03.48.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Nov 2022 03:48:38 -0800 (PST) Date: Wed, 30 Nov 2022 12:48:35 +0100 From: Guillaume Nault To: Christoph Hellwig Cc: Benjamin Coddington , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Philipp Reisner , Lars Ellenberg , Christoph =?iso-8859-1?Q?B=F6hmwalder?= , Jens Axboe , Josef Bacik , Keith Busch , Sagi Grimberg , Lee Duncan , Chris Leech , Mike Christie , "James E.J. Bottomley" , "Martin K. Petersen" , Valentina Manea , Shuah Khan , Greg Kroah-Hartman , David Howells , Marc Dionne , Steve French , Christine Caulfield , David Teigland , Mark Fasheh , Joel Becker , Joseph Qi , Eric Van Hensbergen , Latchesar Ionkov , Dominique Martinet , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Ilya Dryomov , Xiubo Li , Trond Myklebust , Anna Schumaker , Chuck Lever , Jeff Layton , drbd-dev@lists.linbit.com, linux-block@vger.kernel.org, nbd@other.debian.org, linux-nvme@lists.infradead.org, open-iscsi@googlegroups.com, linux-scsi@vger.kernel.org, linux-usb@vger.kernel.org, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, cluster-devel@redhat.com, ocfs2-devel@oss.oracle.com, v9fs-developer@lists.sourceforge.net, ceph-devel@vger.kernel.org, linux-nfs@vger.kernel.org Subject: Re: [PATCH v1 2/3] Treewide: Stop corrupting socket's task_frag Message-ID: <20221130114835.GA29316@pc-4.home> References: <20221129140242.GA15747@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221129140242.GA15747@lst.de> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, Nov 29, 2022 at 03:02:42PM +0100, Christoph Hellwig wrote: > Hmm. Having to set a flag to not accidentally corrupt per-task > state seems a bit fragile. Wouldn't it make sense to find a way to opt > into the feature only for sockets created from the syscall layer? That's something I originally considered. But, as far as I can see, nbd needs this flag _and_ uses sockets created in user space. So it'd still need to opt out manually.