public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Robert Love <rml@tech9.net>
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] s/preempt_count()/in_atomic() in do_exit()
Date: 24 Sep 2002 16:50:54 -0400	[thread overview]
Message-ID: <1032900654.1007.89.camel@phantasy> (raw)

[-- 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());

                 reply	other threads:[~2002-09-24 20:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1032900654.1007.89.camel@phantasy \
    --to=rml@tech9.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox