CryptoAPI: schedual while atomic

From: Jean-Luc Cooke
Date: Mon Aug 30 2004 - 09:28:49 EST


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.

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() ?

Cheers,

JLC
-
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/