On Thu, Mar 31, 2016 at 01:47:50PM +0200, Stephan Mueller wrote: > > Considering the implementation in ansi_cprng.c, is it allowed to use > spin_lock_bh with the sync operations assuming that a cipher implementation > may sleep? As I said, it's only allowed to sleep if you set the MAY_SLEEP flag. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html