* [PATCH] s/preempt_count()/in_atomic() in do_exit()
@ 2002-09-24 20:50 Robert Love
0 siblings, 0 replies; only message in thread
From: Robert Love @ 2002-09-24 20:50 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 281 bytes --]
Linus,
This patch converts the debugging check in do_exit from a check on
preempt_count() to in_atomic().
The main benefit to this is we will stop warning over the BKL and now
use the standard mechanism for such checks.
Patch is against current BK, please apply.
Robert Love
[-- Attachment #2: do_exit-in_atomic-rml-2.5.38-1.patch --]
[-- Type: text/x-patch, Size: 434 bytes --]
diff -urN linux-2.5.38/kernel/exit.c linux/kernel/exit.c
--- linux-2.5.38/kernel/exit.c Tue Sep 24 16:14:44 2002
+++ linux/kernel/exit.c Tue Sep 24 16:34:27 2002
@@ -626,7 +626,7 @@
tsk->flags |= PF_EXITING;
del_timer_sync(&tsk->real_timer);
- if (unlikely(preempt_count()))
+ if (unlikely(in_atomic()))
printk(KERN_INFO "note: %s[%d] exited with preempt_count %d\n",
current->comm, current->pid,
preempt_count());
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-09-24 20:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-24 20:50 [PATCH] s/preempt_count()/in_atomic() in do_exit() Robert Love
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox