Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp205692rdb; Tue, 5 Dec 2023 03:14:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IGroaOjt80LF6pa0ENaIHQhrNhIQ3jVrb4vc6z4zKHMEEKrifxmNQznxZznnksiZKk+bwmL X-Received: by 2002:a17:906:c317:b0:9fe:81a:c258 with SMTP id s23-20020a170906c31700b009fe081ac258mr425317ejz.26.1701774880990; Tue, 05 Dec 2023 03:14:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701774880; cv=none; d=google.com; s=arc-20160816; b=x63J67dYMZq0WKG4YMDQd2ZFd79eVqOdEEGfTh6tF/Baym552kBR4RqCPjvUy7p/JX nXOzOuvbv6wLgwjRZ/uHAqZfH+eyn/kjNNPV2cBBJfLZbQEMAxBHQfoXZTSDC7GYvW80 uhBhidiXbxgR3KDvgRI8ROHx/wMJ+m5JlAm0XeJ0Z2+7OQ3i7fG3y84VFm9goW/3oNXZ E8Gw23DV2sH7IUDiY3F+c9haQwl6vgbgVZdjcaek43yUxHee4MfTU/1ya263SKirs+Jy KnIDVZisZ/Zm6B7ywZzPLOHz40tqP6J7hzS5UgIMD01cfbENFi06m+3WWdt2wsILHKY+ LucQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Ti+3L9sHjPgxTbfO6KNHNY7jHvJ3fmCKNdHEFw4GbM8=; fh=xg3Ou5C1lY5bBMkNBk8uVBaZvtei6ugXQi9ggrO8woE=; b=Xsy/d6NkobViS0bogU1+OEixTUyWmo5EipNrPj7uwsb+JzdIjcM3s5Ux5CVsOf0Az1 zlBq1TgbJOrV6I1yXgkO3HTjPXkPSNFEiIzbNkbBUY28Mm+Bv9HeCB6lKyf7OnDKY2PZ gRzV5aD2lc51Ks8gUfVAjSo72iYxa27cn5yHBPd8xCiRSsTcJIWfOX3Dnl8vYhrsQSvQ QuXhdSFE9N5cIuBoecIfWgIBSZNak10BOc8+JTWAEvlQdg0Fr2CVjYuIR1bPhIsteAm6 Qnkz67eUssTH1LiGDnYQKVzQaDcYTMzPf+C7dwRKZeVj5PN3MTa1T0uBjP3bqgJdaWML 4OiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JGRbNWQ+; spf=pass (google.com: domain of linux-nfs+bounces-330-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-330-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g12-20020a1709067c4c00b009feba30b94csi5375731ejp.428.2023.12.05.03.14.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 03:14:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-330-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JGRbNWQ+; spf=pass (google.com: domain of linux-nfs+bounces-330-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-330-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 912891F21400 for ; Tue, 5 Dec 2023 11:14:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EDEAE55786; Tue, 5 Dec 2023 11:14:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JGRbNWQ+" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CA6BDD2F2; Tue, 5 Dec 2023 11:14:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3BB3C433C8; Tue, 5 Dec 2023 11:14:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701774875; bh=73OmEx/ffdjmiPEOThkveKIEzd2DYDI4NvXIfUxZjdg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JGRbNWQ+IVQsfsMM9YLNcHR1m+fzzIM0EaRQrWrQL/rBcp8r3DBycTQdbHRA3dOe2 1doWXZaDiDWl331klEewtGDlvTUyY02UQoBkw2bXQDnawc6ApM6Abh2EjT+juFRe/n +PTbAjPNNw4IwxnKyjjJ4oKjKIQzqLBrsnsP3OnZzdug4c5s7gs/ATpUeYcZH9EzPo hi6PdxLFwShnchuxaeJLJ8fOIXHiDUAzll/enY/d//GIFDG3na4pqSeTnDPiL7ggXY WKVyCh8Zx8d1alPNFf7wUDxz6UJyXpBCKznT+eKMD3exFCutM8YNpO1zIPMnv0t2Uk smO5K6e9ZvNiA== Date: Tue, 5 Dec 2023 12:14:29 +0100 From: Christian Brauner To: Jens Axboe Cc: NeilBrown , Al Viro , Oleg Nesterov , Chuck Lever , Jeff Layton , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org Subject: Re: [PATCH 1/2] Allow a kthread to declare that it calls task_work_run() Message-ID: <20231205-altbacken-umbesetzen-e5c0c021ab98@brauner> References: <20231204014042.6754-1-neilb@suse.de> <20231204014042.6754-2-neilb@suse.de> <170172377302.7109.11739406555273171485@noble.neil.brown.name> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Mon, Dec 04, 2023 at 03:09:44PM -0700, Jens Axboe wrote: > On 12/4/23 2:02 PM, NeilBrown wrote: > > It isn't clear to me what _GPL is appropriate, but maybe the rules > > changed since last I looked..... are there rules? > > > > My reasoning was that the call is effectively part of the user-space > > ABI. A user-space process can call this trivially by invoking any > > system call. The user-space ABI is explicitly a boundary which the GPL > > does not cross. So it doesn't seem appropriate to prevent non-GPL > > kernel code from doing something that non-GPL user-space code can > > trivially do. > > By that reasoning, basically everything in the kernel should be non-GPL > marked. And while task_work can get used by the application, it happens > only indirectly or implicitly. So I don't think this reasoning is sound > at all, it's not an exported ABI or API by itself. > > For me, the more core of an export it is, the stronger the reason it > should be GPL. FWIW, I don't think exporting task_work functionality is > a good idea in the first place, but if there's a strong reason to do so, Yeah, I'm not too fond of that part as well. I don't think we want to give modules the ability to mess with task work. This is just asking for trouble.