Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp3014158rdb; Mon, 4 Dec 2023 14:09:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IFvqyqqsVLW4bF8ShS+8XfGHA8Oy5kv2p8hKVwVlDw7OodOig3qb37i1rH1L70duuI2K2pM X-Received: by 2002:a05:600c:4d88:b0:40b:5e59:e9f9 with SMTP id v8-20020a05600c4d8800b0040b5e59e9f9mr2906868wmp.152.1701727796190; Mon, 04 Dec 2023 14:09:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701727796; cv=none; d=google.com; s=arc-20160816; b=InZ3+EZKtjTd99IAaJRSSeFDYkHmmF51xnIW9XfZTQonTL1ag5YzTr1Hjg2JxBBLtJ lkb2qANFAiAZf2TAjviULtgDqwiqgDvhbZrsiH0+/1ZaVpzn8EK02S+cPf6UsREp3Lwj Qu+Wc0jS4DoPozlgcMne4NZA9llpRs87aooeK0oOw8B4zkl7eWGZm5eaQE8i/cabiCOU ulTfFOm2hwhQt3COBUBq3pUnQKLc0WhJKaehkPxiiB8fPeFC73UJU8VE3kuusCIbMsht L8bkztSgJi6HUA2ujvivFCenfnaJWJqa3a8JEHa8QZXzmy8ggnmhz1UETGO3kNn9vyvF gUvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=N7YVZRS1Yk2p3iV3hbb4MrgXwpXbi4TeT5VGkU/u+Jk=; fh=XL51nZYJzlPXh2P5QioyudqTP52uwoukbCwxU3y+ORQ=; b=y4TKQMmKMyFNUtXBM86t0WQgtQ2iTpRTa/48B+Yr+rHq0JPbDrtZThe6F2ziBScxlg K4fzz3NdOdoo/3wqQj7mMULVT8D2F12i7Sr3WDUjk3ui+pLDs4v1/mmkdaC+ZBlyWZW/ GJley5JQ2LFpylyJtkQg2y8FevTateey4djy4qk7wJhS8cwDCnjJFG25nCf3xobcKI3T 7/Fci3paNvF8mqswxUxjvxNhITpQrUg1aMFlNoMvI/CBhn74h/F31QS5sjLMiB9hmR5j aeucTmZVAG2B1Rex5QtUw4yL5NFjy4hnd+mZhuofFyZuKWEMO+AvqlgQDok4b0iU808n h9qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=KqMZiWIu; spf=pass (google.com: domain of linux-nfs+bounces-318-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-nfs+bounces-318-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lc6-20020a170906dfe600b009e6a7431a6bsi4866745ejc.533.2023.12.04.14.09.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 14:09:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-318-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=KqMZiWIu; spf=pass (google.com: domain of linux-nfs+bounces-318-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-nfs+bounces-318-linux.lists.archive=gmail.com@vger.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 C00E81F21273 for ; Mon, 4 Dec 2023 22:09:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5636E39FFE; Mon, 4 Dec 2023 22:09:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="KqMZiWIu" X-Original-To: linux-nfs@vger.kernel.org Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADEBACB for ; Mon, 4 Dec 2023 14:09:49 -0800 (PST) Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-5c67fdbe7d4so125703a12.0 for ; Mon, 04 Dec 2023 14:09:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1701727789; x=1702332589; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=N7YVZRS1Yk2p3iV3hbb4MrgXwpXbi4TeT5VGkU/u+Jk=; b=KqMZiWIu6Huk1KRv62/VLR70dCPjpFds0G8v2g0RW8hC/DSworJnr6ZLlYFO2j3c88 hYt0tr1acI6wUHCWFiu7iY1jpRvkg1u8+yu9FZd5fuC8Zf+jlvjquBCuceBwUmcx8e6C tQxq1a6mza04HO9xXTeS620tIojtLyJHI29WYy2ChNCSz01NTw+772Nd0CqqV+eXo5/v WPYcaPYgTu3/7VJW0ooRbRSH56JUPEQLJeN/ZqZ2X8+G/ImlxtpTe2tJ/rKD6wGGTPU/ MqFenhCRgBmedtBNgv8emQ5Tjr/YO+/jCl1UcYKdG7J4J/STnzMJ0jN25nDqFX/C4VI/ Xz1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701727789; x=1702332589; h=content-transfer-encoding:in-reply-to: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=N7YVZRS1Yk2p3iV3hbb4MrgXwpXbi4TeT5VGkU/u+Jk=; b=TkNcgYhHRXatQMxwlp6yVCkyN4ItjyLZWJnjC/18U2/PgBz5+LfGB4phWY7Q4A0iHp xIPU/KuHPVPJKOuHVhiJeCo+RxzcjWg5dsPNR4x8BIkg3Cci8MpuOnqCCSHUQf3kN25Q 9m/lemRFp2eQRsSMdtW3Y19gFlZ+QvxjdNO3DIEcCELNJ1yTbTpCpTUnWiafp8coBS+t 8x1hAUIeUWcDLcOA8AB68/ceqj18TlEf2I6TV3QyjFCVLiEb5LY9nn5i71wLd/TEIas3 KbyCHSfOrYlj/WHHdLANEYDE/fJjj7accTw4D1TayDlPwlSD4xc43Hm3vo3KKTRMS4t2 u01g== X-Gm-Message-State: AOJu0YxhC8kbgmbWf9JvVmjUohaOKzes8NTuoJdJl7+dhXmCXgVY14nM fFp7itlQY8yVj9kFPkksq5J/eQ== X-Received: by 2002:a17:903:234a:b0:1d0:b693:ae30 with SMTP id c10-20020a170903234a00b001d0b693ae30mr2493966plh.6.1701727789078; Mon, 04 Dec 2023 14:09:49 -0800 (PST) Received: from [192.168.1.150] ([198.8.77.194]) by smtp.gmail.com with ESMTPSA id t4-20020a170902bc4400b001bf11cf2e21sm5844131plz.210.2023.12.04.14.09.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Dec 2023 14:09:46 -0800 (PST) Message-ID: Date: Mon, 4 Dec 2023 15:09:44 -0700 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] Allow a kthread to declare that it calls task_work_run() Content-Language: en-US To: NeilBrown Cc: Al Viro , Christian Brauner , 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 References: <20231204014042.6754-1-neilb@suse.de> <20231204014042.6754-2-neilb@suse.de> <170172377302.7109.11739406555273171485@noble.neil.brown.name> From: Jens Axboe In-Reply-To: <170172377302.7109.11739406555273171485@noble.neil.brown.name> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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, it should most certainly not be accessible to non-GPL modules. Basically NO new export should be non-GPL. -- Jens Axboe