All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Con Kolivas <kernel@kolivas.org>
Cc: linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: rt-preempt build failure
Date: Wed, 6 Jul 2005 15:49:50 +0200	[thread overview]
Message-ID: <20050706134950.GC19467@elte.hu> (raw)
In-Reply-To: <200507062304.03944.kernel@kolivas.org>


* Con Kolivas <kernel@kolivas.org> wrote:

> > thanks, i have fixed this and have uploaded the -51-00 patch.
> 
> Thanks. boots and runs stable after a swag of these initially 
> (?netconsole related):
> 
> BUG: scheduling with irqs disabled: swapper/0x00000000/1
> caller is __down_mutex+0x143/0x200
>  [<c02dd908>] schedule+0x95/0xf5 (8)
>  [<c02de5b6>] __down_mutex+0x143/0x200 (28)
>  [<c02422c3>] b44_start_xmit+0x23/0x3ee (84)
>  [<c0292beb>] find_skb+0xa4/0xe4 (8)
>  [<c0292c3e>] netpoll_send_skb+0x13/0xb0 (48)
>  [<c0243dcb>] write_msg+0x5f/0xb6 (16)
>  [<c0243d6c>] write_msg+0x0/0xb6 (12)
>  [<c011c3e1>] __call_console_drivers+0x41/0x4d (8)
>  [<c011c551>] call_console_drivers+0xec/0x109 (20)
>  [<c011c973>] release_console_sem+0x24/0xd4 (32)
>  [<c0243e7e>] init_netconsole+0x40/0x74 (24)
>  [<c03fa9ac>] do_initcalls+0x55/0xc7 (12)
>  [<c010038b>] init+0x8a/0x1b3 (32)
>  [<c0100301>] init+0x0/0x1b3 (16)
>  [<c0100f71>] kernel_thread_helper+0x5/0xb (8)

ok, the patch below (or -51-04 and later kernels) should fix this one.  
printk is fully preemptible from now on - lets see how it works out in 
practice. (i kept it under irqs-off to make sure we get all crash 
messages out. Perhaps we could disable irqs/preemption if 
oops_in_progress?) This patch should also fix similar, fbcon related 
messages.

	Ingo

Index: linux/kernel/printk.c
===================================================================
--- linux.orig/kernel/printk.c
+++ linux/kernel/printk.c
@@ -738,9 +738,8 @@ void release_console_sem(void)
 		_con_start = con_start;
 		_log_end = log_end;
 		con_start = log_end;		/* Flush */
-		spin_unlock(&logbuf_lock);
+		spin_unlock_irq(&logbuf_lock);
 		call_console_drivers(_con_start, _log_end);
-		raw_local_irq_restore(flags);
 	}
 	console_locked = 0;
 	console_may_schedule = 0;

  reply	other threads:[~2005-07-06 18:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-05 13:08 rt-preempt build failure Con Kolivas
2005-07-05 13:51 ` Ingo Molnar
2005-07-06 13:03   ` Con Kolivas
2005-07-06 13:49     ` Ingo Molnar [this message]
2005-07-06 14:33       ` Con Kolivas

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=20050706134950.GC19467@elte.hu \
    --to=mingo@elte.hu \
    --cc=kernel@kolivas.org \
    --cc=linux-kernel@vger.kernel.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 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.