The patch titled in_atomic(): document why it is unsuitable for general use has been removed from the -mm tree. Its filename was in_atomic-document-why-it-is-unsuitable-for-general-use.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: in_atomic(): document why it is unsuitable for general use From: Jonathan Corbet <corbet@xxxxxxx> Discourage people from inappropriately using in_atomic() Signed-off-by: Jonathan Corbet <corbet@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/hardirq.h | 7 +++++++ 1 file changed, 7 insertions(+) diff -puN include/linux/hardirq.h~in_atomic-document-why-it-is-unsuitable-for-general-use include/linux/hardirq.h --- a/include/linux/hardirq.h~in_atomic-document-why-it-is-unsuitable-for-general-use +++ a/include/linux/hardirq.h @@ -72,6 +72,13 @@ #define in_softirq() (softirq_count()) #define in_interrupt() (irq_count()) +/* + * Are we running in atomic context? WARNING: this macro cannot + * always detect atomic context; in particular, it cannot know about + * held spinlocks in non-preemptible kernels. Thus it should not be + * used in the general case to determine whether sleeping is possible. + * Do not use in_atomic() in driver code. + */ #define in_atomic() ((preempt_count() & ~PREEMPT_ACTIVE) != 0) #ifdef CONFIG_PREEMPT _ Patches currently in -mm which might be from corbet@xxxxxxx are origin.patch documentation-patch-tags-one-more-time.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html