From: Steven Rostedt <rostedt@goodmis.org>
To: Nedko Arnaudov <nedko@arnaudov.name>
Cc: Ingo Molnar <mingo@elte.hu>, linux-kernel@vger.kernel.org
Subject: Re: sched.c:659 dec_rt_tasks BUG with patch-2.6.15-rt1 (realtime-preempt)
Date: Fri, 06 Jan 2006 20:05:36 -0500 [thread overview]
Message-ID: <1136595936.12468.168.camel@localhost.localdomain> (raw)
In-Reply-To: <874q4ig0zj.fsf@arnaudov.name>
On Thu, 2006-01-05 at 17:15 +0200, Nedko Arnaudov wrote:
> Will try to crash SMP ASAP, I'm not able to do tests now.
>
> I do erase/burn of 210 MiB rw disk. Erase is done without crash.
> I use version 2.01.01a03 of cdrecord.
> It crashes when burning:
>
> http://nedko.arnaudov.name/tmp/rt-cdrecord-crash.jpg
>
> Same crash occurs when I run oss2jack with -d option.
> It does not occur when running without -d option (daemonize).
>
Nedko,
Could you try either the patch below, or the link
http://home.stny.rr.com/rostedt/patches/patch-2.6.15-rt2-sr2
which has the patch included, to see if this fixes your problem.
Thanks,
-- Steve
Index: linux-2.6.15-rt2/kernel/sched.c
===================================================================
--- linux-2.6.15-rt2.orig/kernel/sched.c 2006-01-06 17:49:41.000000000 -0500
+++ linux-2.6.15-rt2/kernel/sched.c 2006-01-06 19:36:17.000000000 -0500
@@ -783,7 +783,6 @@
static inline void inc_nr_running(task_t *p, runqueue_t *rq)
{
rq->nr_running++;
- inc_rt_tasks(p, rq);
}
static inline void dec_nr_running(task_t *p, runqueue_t *rq)
@@ -921,11 +920,17 @@
static inline
void __activate_task_after(task_t *p, task_t *parent, runqueue_t *rq)
{
+ trace_special_pid(p->pid, p->prio, rq->nr_running);
+ if (p->flags & PF_DEAD) {
+ printk("BUG: %s/%d: dead task enqueued!\n", p->comm, p->pid);
+ dump_stack();
+ }
+ sched_info_queued(p);
// FIXME: to head rather?
list_add_tail(&p->run_list, &parent->run_list);
p->array = parent->array;
p->array->nr_active++;
-
+ inc_rt_tasks(p, p->array->rq);
inc_nr_running(p, rq);
}
next prev parent reply other threads:[~2006-01-07 1:05 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87ek3ug314.fsf@arnaudov.name>
2006-01-02 21:35 ` patch-2.6.15-rc7-rt2 (realtime-preempt) report Nedko Arnaudov
2006-01-02 21:45 ` Ingo Molnar
2006-01-02 23:10 ` Michal Piotrowski
2006-01-02 23:15 ` Florian Schmidt
2006-01-02 23:21 ` patch-2.6.15-rc7-rt3 " Nedko Arnaudov
2006-01-02 23:56 ` Nedko Arnaudov
2006-01-05 2:37 ` sched.c:659 dec_rt_tasks BUG with patch-2.6.15-rt1 (realtime-preempt) Nedko Arnaudov
2006-01-05 4:44 ` Steven Rostedt
2006-01-05 10:03 ` Nedko Arnaudov
2006-01-05 12:19 ` Steven Rostedt
2006-01-05 14:32 ` Nedko Arnaudov
2006-01-05 14:39 ` Steven Rostedt
2006-01-05 15:15 ` Nedko Arnaudov
2006-01-07 1:05 ` Steven Rostedt [this message]
2006-01-07 2:10 ` Steven Rostedt
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=1136595936.12468.168.camel@localhost.localdomain \
--to=rostedt@goodmis.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=nedko@arnaudov.name \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.