From: Tim Cambrant <tim@cambrant.com>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH] [TRIVIAL] current->state to set_current_state - kernel/signal.c
Date: Mon, 15 Mar 2004 02:40:19 +0100 [thread overview]
Message-ID: <20040315014019.GA6660@cambrant.com> (raw)
Hello, here is a small fix to remove some obsolete usage of assigning
directly to current->state in kernel/signal.c.
Tim Cambrant
--- linux-2.6.4/kernel/signal.c.orig 2004-03-15 02:27:22.801481976 +0100
+++ linux-2.6.4/kernel/signal.c 2004-03-15 02:29:56.648093736 +0100
@@ -2107,7 +2107,7 @@ sys_rt_sigtimedwait(const sigset_t __use
recalc_sigpending();
spin_unlock_irq(¤t->sighand->siglock);
- current->state = TASK_INTERRUPTIBLE;
+ set_current_state(TASK_INTERRUPTIBLE);
timeout = schedule_timeout(timeout);
spin_lock_irq(¤t->sighand->siglock);
@@ -2529,7 +2529,7 @@ sys_signal(int sig, __sighandler_t handl
asmlinkage long
sys_pause(void)
{
- current->state = TASK_INTERRUPTIBLE;
+ set_current_state(TASK_INTERRUPTIBLE);
schedule();
return -ERESTARTNOHAND;
}
reply other threads:[~2004-03-15 1:39 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=20040315014019.GA6660@cambrant.com \
--to=tim@cambrant.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/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;
as well as URLs for NNTP newsgroup(s).