public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "David Martínez Moreno" <ender@debian.org>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Kernel Mailing List <linux-kernel@vger.kernel.org>,
	clubinfo.servers@adi.uam.es, Ingo Molnar <mingo@elte.hu>,
	Neil Brown <neilb@cse.unsw.edu.au>,
	ender@debian.org
Subject: Re: Errors and later panics in 2.6.0-test11.
Date: Thu, 4 Dec 2003 13:53:49 +0100	[thread overview]
Message-ID: <200312041353.50063.ender@debian.org> (raw)
In-Reply-To: <Pine.LNX.4.58.0312030916080.6950@home.osdl.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

El Miércoles, 3 de Diciembre de 2003 18:25, Linus Torvalds escribió:
> It might be more useful to leave it as RAID0, if you're willing to try out
> patches to try to debug this. The slab-debugging thing I sent out earlier
> is one such patch (but may well cause out-of-memory problems under load),
> and possibly the atomic-decrement checker patch (appended). And maybe Jens
> and Neil can come up with something..

	Ok, Linus, I've rebooted the server with your patch applied. It'll be very 
easy to check. People are hitting all the time the archive, downloading the 
Debian CD images, so in several hours I'll tell you the result.

	Thanks in advance,


		Ender.

> ===== arch/i386/lib/dec_and_lock.c 1.1 vs edited =====
> --- 1.1/arch/i386/lib/dec_and_lock.c	Tue Feb  5 09:40:21 2002
> +++ edited/arch/i386/lib/dec_and_lock.c	Sun Nov  2 09:07:53 2003
> @@ -19,7 +19,7 @@
>  	counter = atomic_read(atomic);
>  	newcount = counter-1;
>
> -	if (!newcount)
> +	if (newcount <= 0)
>  		goto slow_path;
>
>  	asm volatile("lock; cmpxchgl %1,%2"
> ===== include/asm-i386/atomic.h 1.5 vs edited =====
> --- 1.5/include/asm-i386/atomic.h	Mon Aug 18 19:46:23 2003
> +++ edited/include/asm-i386/atomic.h	Sun Nov  2 09:40:42 2003
> @@ -2,6 +2,8 @@
>  #define __ARCH_I386_ATOMIC__
>
>  #include <linux/config.h>
> +#include <linux/kernel.h>
> +#include <asm/bug.h>
>
>  /*
>   * Atomic operations that C can't guarantee us.  Useful for
> @@ -136,12 +138,17 @@
>   */
>  static __inline__ int atomic_dec_and_test(atomic_t *v)
>  {
> -	unsigned char c;
> +	static int count = 2;
> +	unsigned char c, neg;
>
>  	__asm__ __volatile__(
> -		LOCK "decl %0; sete %1"
> -		:"=m" (v->counter), "=qm" (c)
> +		LOCK "decl %0; sete %1; sets %2"
> +		:"=m" (v->counter), "=qm" (c), "=qm" (neg)
>
>  		:"m" (v->counter) : "memory");
>
> +	if (count && neg) {
> +		count--;
> +		WARN_ON(neg);
> +	}
>  	return c != 0;
>  }

- -- 
Oh, I saw...Very American. Fire enough bullets and hope
 they hit the target!
		-- Allan Quatermain (The League of Extraordinary Gentlemen)
- --
Servicios de red - Network services
Centro de Comunicaciones CSIC/RedIRIS
Spanish Academic Network for Research and Development
Madrid (Spain)
Tlf (+34) 91.585.49.05
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/zy5eWs/EhA1iABsRAslYAKDP9AbmxeYkYMX1VDMbyQvLNhJzEQCgslrF
ZHEPuaAf52qTJ+hfOwZETIQ=
=VmD7
-----END PGP SIGNATURE-----


  parent reply	other threads:[~2003-12-04 12:55 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-03 13:17 Errors and later panics in 2.6.0-test11 David Martínez Moreno
2003-12-03 13:31 ` William Lee Irwin III
2003-12-03 16:49   ` David Martínez Moreno
2003-12-03 15:59 ` Linus Torvalds
2003-12-03 16:20   ` Jens Axboe
2003-12-03 16:26     ` Jens Axboe
2003-12-03 16:51     ` Linus Torvalds
2003-12-03 17:25       ` Kevin P. Fleming
2003-12-05  3:20         ` Nathan Scott
2003-12-05  3:49           ` Kevin P. Fleming
2003-12-03 20:09       ` Neil Brown
2003-12-04  6:39         ` Nathan Scott
2003-12-03 20:04     ` Neil Brown
2003-12-03 20:11       ` Linus Torvalds
2003-12-03 16:47   ` David Martínez Moreno
2003-12-03 17:25     ` Linus Torvalds
2003-12-04 12:43       ` Jens Axboe
2003-12-04 14:07         ` Jens Axboe
2003-12-04 14:14           ` Jens Axboe
2003-12-05  3:07           ` Neil Brown
2003-12-05  4:31             ` Kevin P. Fleming
2003-12-05  4:32             ` Nathan Scott
2003-12-04 12:53       ` David Martínez Moreno [this message]
2003-12-12 18:38       ` David Martínez Moreno

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=200312041353.50063.ender@debian.org \
    --to=ender@debian.org \
    --cc=clubinfo.servers@adi.uam.es \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=neilb@cse.unsw.edu.au \
    --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