From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Marcelo Tosatti <marcelo.tosatti@cyclades.com.br>
Cc: Linux Kernel list <linux-kernel@vger.kernel.org>,
Andrea Arcangeli <andrea@suse.de>
Subject: [PATCH] kupdated signal handling
Date: Tue, 07 Oct 2003 20:33:29 +0200 [thread overview]
Message-ID: <1065551422.31281.32.camel@gaston> (raw)
Here's the fix to the problem we have been discussing...
===== fs/buffer.c 1.80 vs edited =====
--- 1.80/fs/buffer.c Sat Sep 13 20:09:44 2003
+++ edited/fs/buffer.c Wed Oct 1 11:27:07 2003
@@ -3068,13 +3068,13 @@
remove_wait_queue(&kupdate_wait, &wait);
/* check for sigstop */
if (signal_pending(tsk)) {
- int stopped = 0;
+ int sig, stopped = 0;
+ struct siginfo info;
+
spin_lock_irq(&tsk->sigmask_lock);
- if (sigismember(&tsk->pending.signal, SIGSTOP)) {
- sigdelset(&tsk->pending.signal, SIGSTOP);
+ sig = dequeue_signal(¤t->blocked, &info);
+ if (sig == SIGSTOP)
stopped = 1;
- }
- recalc_sigpending(tsk);
spin_unlock_irq(&tsk->sigmask_lock);
if (stopped) {
tsk->state = TASK_STOPPED;
reply other threads:[~2003-10-07 18:34 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=1065551422.31281.32.camel@gaston \
--to=benh@kernel.crashing.org \
--cc=andrea@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.com.br \
/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
all inboxes | Powered by JetHome®