From: Peter Williams <pwil3058@bigpond.net.au>
To: Ingo Molnar <mingo@elte.hu>
Cc: Gregory Haskins <ghaskins@novell.com>,
jim.houston@ccur.com, joe.korty@ccur.com, rostedt@goodmis.org,
tglx@linutronix.de, dwalker@mvista.com,
David Bahi <DBahi@novell.com>, Moiz Kohari <MKohari@novell.com>,
Sven Dietrich <SDietrich@novell.com>,
dsaxena@plexity.net, williams@redhat.com, abogani@texware.it,
linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org
Subject: Re: Forward port of latest RT patch (2.6.21.5-rt20) to 2.6.22 available
Date: Fri, 13 Jul 2007 16:25:32 +1000 [thread overview]
Message-ID: <46971ADC.3030700@bigpond.net.au> (raw)
In-Reply-To: <20070712130958.GB17494@elte.hu>
[-- Attachment #1: Type: text/plain, Size: 1281 bytes --]
Ingo Molnar wrote:
> * Gregory Haskins <ghaskins@novell.com> wrote:
>
>> On Thu, 2007-07-12 at 14:07 +0200, Ingo Molnar wrote:
>>> * Gregory Haskins <ghaskins@novell.com> wrote:
>>>
>>>> Hi Ingo, Thomas, and the greater linux-rt community,
>>>>
>>>> I just wanted to let you guys know that our team has a port of
>>>> the 21.5-rt20 patch for the 2.6.22 kernel available. [...]
>>> great! We had the upstream -rt port to .22 in the works too, it was just
>>> held up by the hpet breakage - which Thomas managed to fix earlier
>>> today. I've released the 2.6.22.1-rt1 patch to the usual place:
>>>
>>> http://redhat.com/~mingo/realtime-preempt/
>> Thats awesome, Ingo! Thanks! Could you publish a broken out version
>> as well? We found it extremely valuable to be able to bisect this
>> beast while working on the 21-22 port.
>
> we are working on something in this area :) Stay tuned ...
I've just been reviewing these patches and have spotted an error in the
file mm/slob.c at lines 500-501 whereby a non existent variable "c" is
referenced. The attached patch is a proposed fix to the problem.
--
Peter Williams pwil3058@bigpond.net.au
"Learning, n. The kind of ignorance distinguishing the studious."
-- Ambrose Bierce
[-- Attachment #2: fix-slob-error.patch --]
[-- Type: text/x-patch, Size: 1346 bytes --]
Fix error in realtime-preempt patch for mm/slob.c
This error was caused by a change to slob_free()'s interface.
Signed-off-by: Peter Williams <pwil3058@bigpond.net.au>
diff -r cb0010b7bffe mm/slob.c
--- a/mm/slob.c Fri Jul 13 15:24:45 2007 +1000
+++ b/mm/slob.c Fri Jul 13 16:23:02 2007 +1000
@@ -493,14 +493,14 @@ void *kmem_cache_zalloc(struct kmem_cach
}
EXPORT_SYMBOL(kmem_cache_zalloc);
-static void __kmem_cache_free(void *b, int size)
+static void __kmem_cache_free(struct kmem_cache *c, void *b)
{
atomic_dec(&c->items);
if (c->size <= MAX_SLOB_CACHE_SIZE)
slob_free(c, b, c->size);
else
- free_pages((unsigned long)b, get_order(size));
+ free_pages((unsigned long)b, get_order(c->size));
}
static void kmem_rcu_free(struct rcu_head *head)
@@ -508,7 +508,7 @@ static void kmem_rcu_free(struct rcu_hea
struct slob_rcu *slob_rcu = (struct slob_rcu *)head;
void *b = (void *)slob_rcu - (slob_rcu->size - sizeof(struct slob_rcu));
- __kmem_cache_free(b, slob_rcu->size);
+ __kmem_cache_free(slob_rcu, b);
}
void kmem_cache_free(struct kmem_cache *c, void *b)
@@ -520,7 +520,7 @@ void kmem_cache_free(struct kmem_cache *
slob_rcu->size = c->size;
call_rcu(&slob_rcu->head, kmem_rcu_free);
} else {
- __kmem_cache_free(b, c->size);
+ __kmem_cache_free(c, b);
}
}
EXPORT_SYMBOL(kmem_cache_free);
next prev parent reply other threads:[~2007-07-13 7:14 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-12 12:26 Forward port of latest RT patch (2.6.21.5-rt20) to 2.6.22 available Gregory Haskins
2007-07-12 13:09 ` Ingo Molnar
2007-07-13 6:25 ` Peter Williams [this message]
2007-07-13 6:52 ` Thomas Gleixner
2007-07-13 8:43 ` Gene Heskett
2007-07-13 9:42 ` Thomas Gleixner
2007-07-14 0:27 ` Peter Williams
2007-07-14 0:52 ` Gene Heskett
2007-07-26 1:24 ` Minor errors in 2.6.23-rc1-rt2 series Peter Williams
2007-07-26 7:36 ` Ingo Molnar
2007-08-06 1:29 ` Possible error in 2.6.23-rc2-rt1 series Peter Williams
2007-08-06 5:42 ` Ingo Molnar
-- strict thread matches above, loose matches on Subject: below --
2007-07-12 16:26 Forward port of latest RT patch (2.6.21.5-rt20) to 2.6.22 available Gregory Haskins
2007-07-12 16:33 ` Ingo Molnar
2007-07-12 20:21 ` Sven-Thorsten Dietrich
2007-07-13 12:52 ` Benjamin Herrenschmidt
2007-07-12 11:10 Gregory Haskins
2007-07-12 10:17 Gregory Haskins
2007-07-12 0:58 Gregory Haskins
2007-07-12 1:05 ` Daniel Walker
2007-07-12 5:14 ` Thomas Gleixner
2007-07-12 7:27 ` Alessio Igor Bogani
2007-07-12 12:07 ` Ingo Molnar
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=46971ADC.3030700@bigpond.net.au \
--to=pwil3058@bigpond.net.au \
--cc=DBahi@novell.com \
--cc=MKohari@novell.com \
--cc=SDietrich@novell.com \
--cc=abogani@texware.it \
--cc=dsaxena@plexity.net \
--cc=dwalker@mvista.com \
--cc=ghaskins@novell.com \
--cc=jim.houston@ccur.com \
--cc=joe.korty@ccur.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
--cc=williams@redhat.com \
/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.