• Herbert Xu's avatar
    [CRYPTO]: Only reschedule if !in_atomic() · 15333038
    Herbert Xu authored
    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: default avatarDavid S. Miller <davem@davemloft.net>
    15333038
internal.h 2.38 KB