Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp286525rwe; Wed, 31 Aug 2022 22:12:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR43mD9n8cQElWwV1HwSZ1hKhL3uQoP2i4N2hG/Bdpi/v9oHJ1y4YjSPr7rEprSBcmMEeKGk X-Received: by 2002:a17:907:75c1:b0:730:aa62:7f65 with SMTP id jl1-20020a17090775c100b00730aa627f65mr21543316ejc.355.1662009176769; Wed, 31 Aug 2022 22:12:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662009176; cv=none; d=google.com; s=arc-20160816; b=ShSANQZ8Oowyp0n2+k7LWYxjvUDEtKUgacw/pRr+x6U4CfgtKGHEIBjqmMx2h9i38E xNDiEpXqsFdOBVjTOPmvlePVzeCAoX0m7OQ7gLGz2geiBmcGgsuBqivzzk++B9MElKK9 +EsGd6eSr2zSML/KbCggODqO0STYIbzo+STiEGUUfVD+Al40qozz/2h6Q/o7yVzIvHjn m2Tcr8PnZGcMRMuLZ6Xau/yeFSX/2DMeHKQWIz8alCR5BSu/3XimbT5jvcsP85Jhklht dYAYV/yZYGhEOAwNNYsQRbL1E9KIYBQRPdO66QOe8YQKtk73QKp9fs7dCzZLgsi+MLDD J20g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=J9CDqKjhyIChk/ue16kcAK+EvK5aDUOXzw021qYdEwY=; b=pelC+QCZ7p/AUgQA/O3yYKvVIuKIq0l7bnaiQfUA5C5KVGudqgct8kcnHphHOadaKw BbDb5kOcMtdJeBeRSqS0NbLKx0wQF7nPkFq1Wjxiag947EaUthfN3VXQFD6WzDYMfjci B7Nxc1bqkJdIM916F3AtvHvmbWvFmJ4I3FR7RPu8JAdajPqffLY4kj8Sk250aGY50Aml YTKh/ZccDm8/a0GDvLMDFF62YR0++mXzpzeBpOuDHj2qnnCFRw/phok1jYyKz+5kSmRG 32fRETEp7orurYGsB0qIsKNj/t/QEzJLIVvPhdyV20RoPn2AkkihTWEAIBlvmCMg27l2 IG1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 z18-20020a05640240d200b0043d56e0c95asi1061853edb.585.2022.08.31.22.11.53; Wed, 31 Aug 2022 22:12:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231650AbiIAFLA (ORCPT + 99 others); Thu, 1 Sep 2022 01:11:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231249AbiIAFK7 (ORCPT ); Thu, 1 Sep 2022 01:10:59 -0400 X-Greylist: delayed 343 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 31 Aug 2022 22:10:57 PDT Received: from isilmar-4.linta.de (isilmar-4.linta.de [136.243.71.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA7F810853F; Wed, 31 Aug 2022 22:10:57 -0700 (PDT) X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES Received: from owl.dominikbrodowski.net (owl.brodo.linta [10.2.0.111]) by isilmar-4.linta.de (Postfix) with ESMTPSA id 668752000AD; Thu, 1 Sep 2022 05:05:13 +0000 (UTC) Received: by owl.dominikbrodowski.net (Postfix, from userid 1000) id CD4E08084B; Thu, 1 Sep 2022 07:05:01 +0200 (CEST) Date: Thu, 1 Sep 2022 07:05:01 +0200 From: Dominik Brodowski To: Sven van Ashbrook Cc: LKML , Alex Levin , Rajat Jain , Andrey Pronin , Stephen Boyd , Eric Biggers , Herbert Xu , "Jason A. Donenfeld" , Olivia Mackall , Petr Mladek , Sebastian Andrzej Siewior , Theodore Ts'o , linux-crypto@vger.kernel.org Subject: Re: [PATCH v1 1/2] random: make add_hwgenerator_randomness() more flexible Message-ID: References: <20220831172024.1613208-1-svenva@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220831172024.1613208-1-svenva@chromium.org> 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-crypto@vger.kernel.org Am Wed, Aug 31, 2022 at 05:20:23PM +0000 schrieb Sven van Ashbrook: > add_hwgenerator_randomness() currently blocks until more entropy > is needed. But, the required delay function will depend on the > the caller: e.g. freezable kthreads have their own freezable_XXX() > APIs; and delayed_work might prefer to use mod_delayed_work(). > > To accommodate these requirements, remove the blocking wait, and > let the function return the delay needed until more entropy is needed. AFAICS, there's only one caller in the kernel, and its specific requirements are currently met by the callee. So the rationale for this patch is wanting, yet you may wish to justify this patch more explicitly as a preparation for the second patch. Thanks, Dominik