Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5731779rwb; Wed, 7 Sep 2022 07:15:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR5AiCPsQeJsQxyMz4A41kAKhHvTw5WihpvYxbxylm+RjbR61fNuqCpadDnkP75bnD2g/2af X-Received: by 2002:a17:907:94c5:b0:74f:25e3:5f86 with SMTP id dn5-20020a17090794c500b0074f25e35f86mr2453880ejc.304.1662560157950; Wed, 07 Sep 2022 07:15:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662560157; cv=none; d=google.com; s=arc-20160816; b=NMwq2dfCERe+opOR/zWUY9z0tIKogamKY/TGBxrAxGpE5qI1S9zuQJEhxkHvArKjgC 6RXSmL1tdrUnjUagGnYo+LbQkbE7vL6Zt0tONFFblkXf02yxTabzQxt1FnpgLPkniofp 8z0MpLTSL2SqwO+orSBxkXrm6hmx9msCykLaW15zITQeQtSZYWqFRKneLyHF57PlZ2sX ea6vMIk4zRCIIjQeFIreswcPOj/bffTOOM1RvBmH1b+QxOogmC/jWpQoaAzieRkIvVY6 JyZvQCsUzYPB0kg0SNbJL5i1IHkyVfZl0pFGcff9ySPWLBQ8js+mcWt2RrrsHttx0f9k kG7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=XLm2FS4jato4lheGsNY4LowY5TrnyAyqeiZDY4H2/yM=; b=sK2bfaDrHKse8Fy1I54jto/48AxPXvXrxFfzUbBwyaQ18r7HqIGHqmbad+aXJa1mIn YhXiiaOxbRDFdrJwXozVMpHohPPfQo+LFRRQzhDcdFcL6DQ5qECDw+N+1zTvHDDsIIF3 m4Tu7s6Z/C4q1LlE/017y85dwCCxY19E5S9Q3/BElQdWqTtoFbxkW9VETLvr4LlLvqtI WsfBjfHC+tGI5mLCq8/QWu2JF8lF58rL7GSNW9P3AU91ZS3daYfa5DfOUxQVzCovb7a9 LD28lCBliRdAlXcQdTqTKLFR+36bQvjbykLWHYF+E7oOFEUaS662Bvlwgo9+fEzOLrxY JzZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=5MKSEGVB; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js8-20020a17090797c800b00734c8b99826si3759595ejc.803.2022.09.07.07.15.32; Wed, 07 Sep 2022 07:15:57 -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=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=5MKSEGVB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229712AbiIGOMb (ORCPT + 99 others); Wed, 7 Sep 2022 10:12:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbiIGOM2 (ORCPT ); Wed, 7 Sep 2022 10:12:28 -0400 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FD325725A for ; Wed, 7 Sep 2022 07:12:26 -0700 (PDT) Received: by mail-io1-xd2e.google.com with SMTP id i77so11552436ioa.7 for ; Wed, 07 Sep 2022 07:12:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; 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; bh=XLm2FS4jato4lheGsNY4LowY5TrnyAyqeiZDY4H2/yM=; b=5MKSEGVBkug8VZmE0BjiTtziIZRjpAip/BCo9UCoKKGsa6AHBcXLO3X3etSiSHYAk9 dD55ixrjONSFhVKfUwMmzyry5F68fD8aCiCMX09lBYqWKcA6qWwGpO/jC2xBf1tLw+qH NJeYHhXLepPDT6Nx2a8QebU6YNqJxl8eW4zA1A2VncL2eT6VnCIJWDuaufe/65ehEEe3 v8zdTvZb1QV234MvnorE8cTh+fD8ocHbn+m0cz9zusacYRxWQXYA/AR95BX1HiPznUsx x0GoIdwDBA8a+azN4G5unS1EpJu8QpxyrSkbtWRcIBlrKUksIUd+MkTqtE71ad6soHh3 riDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=XLm2FS4jato4lheGsNY4LowY5TrnyAyqeiZDY4H2/yM=; b=KyEZwFykLtZ4Xp/eQ2FPdHdY5pUkyOL/Q+3IqIxzRz6JGPg3M1O4vIUT4GCU3z8Wyk J1ZRFiQ4kputKDBVjrXEbmlJmlfJS2YgVGGTpVq5w34B4o4sAowaPOnfyBjKw/pN91A3 SJWxa5ziDriuRcgNWRNc6Ug7itTJmlpbCxQaxj0NB1WF5J7k/JlzSWpjrtZSMxfG2A9V 2HPX2bdLeDpNbt1sWCAS6FEOB9c12+V9pagD43FZrqtcQkchxHvHVyKXB4Ly5amKql67 +TCC1YkZZPMOUdOt6lIHdtKk8IRjCGGWwfsBV3S3exHUhLw89BWJddUJ9BO59bo+lH3n LZxQ== X-Gm-Message-State: ACgBeo0H5sVLNZn6yvHPc3OFfXLmzYNU1THRgJEsTb605hHyccoXt+c/ QqtSaHqSvhl8ui4wEZ8TkffbjJO7OVfACg== X-Received: by 2002:a02:294a:0:b0:349:fb9e:b5e0 with SMTP id p71-20020a02294a000000b00349fb9eb5e0mr2247160jap.115.1662559944962; Wed, 07 Sep 2022 07:12:24 -0700 (PDT) Received: from [192.168.1.94] ([207.135.234.126]) by smtp.gmail.com with ESMTPSA id o3-20020a027403000000b0034f36a43ec8sm6796219jac.78.2022.09.07.07.12.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Sep 2022 07:12:24 -0700 (PDT) Message-ID: Date: Wed, 7 Sep 2022 08:12:23 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [PATCH] kernel: export task_work_add Content-Language: en-US To: Christoph Hellwig Cc: Bart Van Assche , Ming Lei , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org References: <20220829040013.549212-1-ming.lei@redhat.com> <5a1b3716-bcf8-8c37-2bd5-44e885de1f48@acm.org> <2d4655d4-2510-eb1e-2e4d-9d910e823293@kernel.dk> <20220907140550.GA21414@lst.de> From: Jens Axboe In-Reply-To: <20220907140550.GA21414@lst.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On 9/7/22 8:05 AM, Christoph Hellwig wrote: > On Wed, Sep 07, 2022 at 07:44:05AM -0600, Jens Axboe wrote: >> On the patch itself, it definitely makes sense in the context of ublk. >> My hesitation is mostly around not really wanting to export this to >> generic modular users. It's OK for core interfaces, of which ublk is >> on the way to becoming, but I really don't like the idea of random >> modules using it. But that's not really something we can manage with >> the export, it's either exported or it's not... > > Yes, I'm really worried about folks doing stupid things with it. > Thinking of the whole loop saga.. Exactly. But we don't really have any tools outside of clearly marking it as such. It's not like we have an EXPORT_MODULE_CORE_GPL() and with that requiring a driver or modular kernel feature that marks the module as MODULE_IS_CORE_GPL(). -- Jens Axboe