linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BUG in shared_policy_replace() ?
@ 2005-01-19  0:31 Steve Longerbeam
  2005-01-19 12:37 ` Hugh Dickins
  0 siblings, 1 reply; 11+ messages in thread
From: Steve Longerbeam @ 2005-01-19  0:31 UTC (permalink / raw)
  To: Andi Kleen; +Cc: linux-mm, linux-kernel

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

Hi Andi,

Why free the shared policy created to split up an old
policy that spans the whole new range? Ie, see patch.

Steve

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

--- mm/mempolicy.c.orig	2005-01-18 16:13:35.573273351 -0800
+++ mm/mempolicy.c	2005-01-18 16:24:23.940608135 -0800
@@ -1052,10 +1052,6 @@
 	if (new)
 		sp_insert(sp, new);
 	spin_unlock(&sp->lock);
-	if (new2) {
-		mpol_free(new2->policy);
-		kmem_cache_free(sn_cache, new2);
-	}
 	return 0;
 }
 

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-01-19 21:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-19  0:31 BUG in shared_policy_replace() ? Steve Longerbeam
2005-01-19 12:37 ` Hugh Dickins
2005-01-19 17:32   ` Steve Longerbeam
2005-01-19 17:45     ` Andi Kleen
2005-01-19 18:22       ` Steve Longerbeam
2005-01-19 18:34         ` Andi Kleen
2005-01-19 18:59           ` Steve Longerbeam
2005-01-19 19:09             ` Andi Kleen
2005-01-19 19:25               ` Steve Longerbeam
2005-01-19 19:29                 ` Andi Kleen
2005-01-19 21:39                   ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).