Re: 1.0.9b-pre2 uploaded (2.2.13 SMP testing)


From: ao@morpork.shnet.org (A. Ott)
Subject: Re: 1.0.9b-pre2 uploaded (2.2.13 SMP testing)
Date: 27 Feb 2000 11:49:00 +0100

Next Article (by Date): Re: 1.0.9b-pre2 uploaded (2.2.13 SMP testing) Jesse Pollard
Previous Article (by Date): Re: 1.0.9b-pre2 uploaded (2.2.13 SMP testing) ao@morpork.shnet.org (A. Ott)
Top of Thread: Re: 1.0.9b-pre2 uploaded (2.2.13 SMP testing) Jesse Pollard
Next in Thread: Re: 1.0.9b-pre2 uploaded (2.2.13 SMP testing) Jesse Pollard
Articles sorted by: [Date] [Author] [Subject]


I wrote:

> I never touched those functions, but it might be a console lock problem.
> Please retry with the following patch:

Sorry, for 2.2 you also need the declaration

extern spinlock_t console_lock;

somewhere before its use in debug.c.

> --- linux-2.3.46-rsbac-1.0.9b/rsbac/help/debug.c	Wed Feb 23 14:02:24 2000
> +++ linux-2.3.47-rsbac-1.0.9b/rsbac/help/debug.c	Sun Feb 27 11:22:19 2000
> @@ -18,6 +18,7 @@
>  #include <linux/init.h>
>  #include <linux/config.h>
>  #include <linux/module.h>
> +#include <linux/console.h>
>
>  /* Boolean debug switch for data structures */
>  int  rsbac_debug_ds = 0;
> @@ -705,7 +706,7 @@
>  	return error;
>  }
>
> -static spinlock_t rsbac_console_lock;
> +/* static spinlock_t rsbac_console_lock; */
>
>  #ifdef CONFIG_RSBAC_REG
>  EXPORT_SYMBOL(rsbac_printk);
> @@ -719,7 +720,7 @@
>  	static signed char msg_level = -1;
>  	long flags;
>
> -	spin_lock_irqsave(&rsbac_console_lock, flags);
> +	spin_lock_irqsave(&console_lock, flags);
>  	va_start(args, fmt);
>  	i = vsprintf(buf + 3, fmt, args); /* hopefully i < sizeof(buf)-4 */
>  	buf_end = buf + 3 + i;
> @@ -759,7 +760,7 @@
>  		if (line_feed)
>  			msg_level = -1;
>  	}
> -	spin_unlock_irqrestore(&rsbac_console_lock, flags);
> +	spin_unlock_irqrestore(&console_lock, flags);
>  	wake_up_interruptible(&rlog_wait);
>  	return i;
>  }
> @@ -1894,7 +1895,7 @@
>
>      if (!rsbac_is_initialized())
>        {
> -#if defined(CONFIG_RSBAC_RMSG)
> +#if 0 && defined(CONFIG_RSBAC_RMSG)
>          /* init console lock */
>          spin_lock_init(&rsbac_console_lock);
>  #endif
>
> --
> Please remove second ao for E-Mail reply - no spam please!
> ## CrossPoint v3.11 ##


--
-
To unsubscribe from the rsbac list, send a mail to
majordomo@morpork.shnet.org with
unsubscribe rsbac
as single line in the body.

Next Article (by Date): Re: 1.0.9b-pre2 uploaded (2.2.13 SMP testing) Jesse Pollard
Previous Article (by Date): Re: 1.0.9b-pre2 uploaded (2.2.13 SMP testing) ao@morpork.shnet.org (A. Ott)
Top of Thread: Re: 1.0.9b-pre2 uploaded (2.2.13 SMP testing) Jesse Pollard
Next in Thread: Re: 1.0.9b-pre2 uploaded (2.2.13 SMP testing) Jesse Pollard
Articles sorted by: [Date] [Author] [Subject]


Go to Compuniverse LWGate Home Page.