Re: [CRYPTO]: Only reschedule if !in_atomic()

From: Arjan van de Ven
Date: Tue May 24 2005 - 01:46:13 EST



> - if (!in_softirq())
> + if (!in_atomic())
> cond_resched();

this looks wrong. in_atomic() isn't doing what I think you think it
does; for one it doesn't get set inside spinlock regions (unless preempt
is enabled)

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