From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753241AbbEKJ2r (ORCPT ); Mon, 11 May 2015 05:28:47 -0400 Received: from helcar.hengli.com.au ([209.40.204.226]:45867 "EHLO helcar.hengli.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752376AbbEKJ2p (ORCPT ); Mon, 11 May 2015 05:28:45 -0400 Date: Mon, 11 May 2015 17:28:29 +0800 From: Herbert Xu To: Stephan Mueller Cc: pebolle@tiscali.nl, andreas.steffen@strongswan.org, tytso@mit.edu, sandyinchina@gmail.com, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Subject: Re: [PATCH v5 1/5] random: Async and sync API for accessing nonblocking_pool Message-ID: <20150511092829.GA4014@gondor.apana.org.au> References: <1887272.cxqymnQQZn@tachyon.chronox.de> <3264123.O3YfJV7UGj@tachyon.chronox.de> <20150511065714.GA2598@gondor.apana.org.au> <3644541.vBsSXgpCaS@tauon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3644541.vBsSXgpCaS@tauon> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 11, 2015 at 09:30:11AM +0200, Stephan Mueller wrote: > > I will remove that in the next installment. But that means that the DRBG > kernel module (or any other module) cannot be unloaded until the work > completes. I don't think that's a big deal. > Are you suggesting to only leave get_blocking_random_bytes and have the caller > implementing the appropriate synchronous wait or async work? No there should just be a single interface where you feed it a function pointer and a data pointer. This function should then be called when the pool is ready. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt