Re: CryptoAPI: schedual while atomic

From: James Morris
Date: Mon Aug 30 2004 - 09:48:11 EST


On Mon, 30 Aug 2004, Jean-Luc Cooke wrote:

> While I was playing with using the CryptoAPI in /dev/random for my own
> purposes, I noticed that I was getting quite a few "schedual while atomic!"
> console messages.

Where is the code which caused this? The transforms are safe to use (but
not allocate) in process and softirq contexts.

> Talking with Michal Ludvig, I seem to think that a "!is_atomic()" check
> inside crypto_yield() or passing a flag during crypto_alloc_tfm() would make
> a lot of sense.
>
> This may be more directed at James Morris, but here it goes:
>
> Can we have some logic to either check for or turn off crypto_yield()'s in
> crypto/internal.h's crypto_yield() ?

Why? This should not be needed.


- James
--
James Morris
<jmorris@xxxxxxxxxx>


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/