Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5766113rwb; Wed, 7 Sep 2022 07:43:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR66efAN/G6R2RgGwQi/44Gx/npqwxKi4QyXvjUjGdzeGGPSxO37mD4AqSa3e6RBvYeYnpT0 X-Received: by 2002:a05:6402:5201:b0:448:7b26:b94f with SMTP id s1-20020a056402520100b004487b26b94fmr3417367edd.119.1662561802324; Wed, 07 Sep 2022 07:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662561802; cv=none; d=google.com; s=arc-20160816; b=W4qjV9RzAjoRFSucSrx963CFRBIii4Ejm9sczRwf3IYUVyySJHIUtmm6X47OO8Aokg fFAstNdqZ3uDTTmYh1EZBZx+MgBUQZEuax44FuILuXggdKaL+6QOfRDJF4S35AoXS4r2 1JYrINM8W+bqEV5ohd8A2/l94sKfaeep5GvVqIosD1xsFIhGWKI2K6ytaaE868XHvhDz OjPY1EHBfOugjLYdJ/KRqk7qVW4NKgNAn9aCrvqQp7XjtvgRny6xsXs3uidubs5gRQFS V9YLWoIz+gHYwcb43i6fDnghOaVZ4SvmmB3N9GgQAxkkWoMF0tsW5SmUus/z5XP/Rcf1 BzsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=kgH0Ro2Aawki77/0wWR61wkZEnAbVi0bClyvUj9P3Dw=; b=S+eIrgBzChRXwofHTsbIAHTbXdZRoUTnWEFU8XpAAhwbD02VWDu+gnDjYtWciSmxKp lGIF5RVWWQ2z2Rg1+dkandM8xvYUacrKq5mfBdFZJl6FQVXrR5004h5QQQQRR09pUGrE 5Zqz0dJL3PgQ3pWG2/Jx04ApTbxloYlIrJxnIccH9a1EW6XIDmpOsXEC6ynh+ygYSkTJ GO4yJ+suAkzWc00ck5fFhDLjZCjxP1PHdZtCPPCsQevrgmUKSm2PIACAUOep2xMs9M+r HU6iK7Q1HeY/EKcKqPTQN37nJq/HzIMnfC94uVNA0dhaWQt8vRuSqnCW8JgQp9zghf0w nN0A== ARC-Authentication-Results: i=1; mx.google.com; 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 y11-20020a170906524b00b007420947aa83si11424663ejm.193.2022.09.07.07.42.55; Wed, 07 Sep 2022 07:43:22 -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; 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 S229925AbiIGOF4 (ORCPT + 99 others); Wed, 7 Sep 2022 10:05:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229920AbiIGOFz (ORCPT ); Wed, 7 Sep 2022 10:05:55 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F30D48C9A; Wed, 7 Sep 2022 07:05:54 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 9D24D67373; Wed, 7 Sep 2022 16:05:50 +0200 (CEST) Date: Wed, 7 Sep 2022 16:05:50 +0200 From: Christoph Hellwig To: Jens Axboe Cc: Bart Van Assche , Ming Lei , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH] kernel: export task_work_add Message-ID: <20220907140550.GA21414@lst.de> References: <20220829040013.549212-1-ming.lei@redhat.com> <5a1b3716-bcf8-8c37-2bd5-44e885de1f48@acm.org> <2d4655d4-2510-eb1e-2e4d-9d910e823293@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2d4655d4-2510-eb1e-2e4d-9d910e823293@kernel.dk> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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..