]> git.baikalelectronics.ru Git - kernel.git/commit
[CRYPTO]: Only reschedule if !in_atomic()
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 23 May 2005 19:36:25 +0000 (12:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 May 2005 19:36:25 +0000 (12:36 -0700)
commit22d56b3333eb9b37349839d79a7832cc0de959e7
treec48106158bce4c7af328c486b7f33ad2133459ee
parent1097c69b2261b351ee3a9742909b6e92c9576fe3
[CRYPTO]: Only reschedule if !in_atomic()

The netlink gfp_any() problem made me double-check the uses of in_softirq()
in crypto/*.  It seems to me that we should be checking in_atomic() instead
of in_softirq() in crypto_yield.  Otherwise people calling the crypto ops
with spin locks held or preemption disabled will get burnt, right?

Signed-off-by: David S. Miller <davem@davemloft.net>
crypto/internal.h