public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Philippe Elie <phil.el@wanadoo.fr>
To: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: kmem_cache_destroy: Can't free all objects (2.6)
Date: Fri, 15 Aug 2003 14:05:51 +0000	[thread overview]
Message-ID: <3F3CE8BF.6080800@wanadoo.fr> (raw)
In-Reply-To: Pine.LNX.4.33.0308142131130.8530-100000@blackhole.kfki.hu

[-- Attachment #1: Type: text/plain, Size: 643 bytes --]

Jozsef Kadlecsik wrote:
> On Thu, 14 Aug 2003, Philippe Elie wrote:
> 
> 
>>>This happens both with 2.5.74 and 2.6.0-test1.
>>
>>I fixed a bug with exactly this symptom, all object freed but
>>the cache was retaining some object internally. I look 2.6.0-test1
>>and the fix is in, apologies if you already did it correctly
>>but can you double check the bug is really in 2.6.0-test1.
> 
> 
> Yes. Before I posted my mail I googled a lot and found your fix. I
> checked the source of 2.6.0-test1 and your fix is there of course.

Thanks, I wanted to be sure before digging in the source. Try
the attached patch please.

regards,
Philippe Elie


[-- Attachment #2: slab.diff --]
[-- Type: text/plain, Size: 321 bytes --]

--- mm/slab.c~	2003-07-14 03:36:48.000000000 +0000
+++ mm/slab.c	2003-08-15 13:59:34.000000000 +0000
@@ -2349,7 +2349,7 @@
 	int tofree;
 
 	check_spinlock_acquired(cachep);
-	if (ac->touched) {
+	if (ac->touched && !force) {
 		ac->touched = 0;
 	} else if (ac->avail) {
 		tofree = force ? ac->avail : (ac->limit+4)/5;

  reply	other threads:[~2003-08-15 12:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-14 10:32 kmem_cache_destroy: Can't free all objects (2.6) Jozsef Kadlecsik
2003-08-14 16:06 ` Philippe Elie
2003-08-14 19:33   ` Jozsef Kadlecsik
2003-08-15 14:05     ` Philippe Elie [this message]
2003-08-15 12:32       ` Jozsef Kadlecsik
2003-08-16 14:20         ` Jozsef Kadlecsik

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=3F3CE8BF.6080800@wanadoo.fr \
    --to=phil.el@wanadoo.fr \
    --cc=kadlec@blackhole.kfki.hu \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox