public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Dropped patch: mm/mempolicy.c:sp_lookup()
@ 2004-11-16  4:15 Chuck Ebbert
  2004-11-17  1:00 ` Andi Kleen
  0 siblings, 1 reply; 11+ messages in thread
From: Chuck Ebbert @ 2004-11-16  4:15 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andrea Arcangeli, Andi Kleen, Andrew Morton

Andrea posted this one-liner a while ago as part of a larger patch.  He said
it fixed return of the wrong policy in some conditions.  Was this a valid fix?


--- linux-2.6.10-rc2/mm/mempolicy.c     2004-11-11 03:23:03.000000000 -0500
+++ edited/mm/mempolicy.c       2004-11-15 22:09:41.387881104 -0500
@@ -902,7 +902,7 @@ sp_lookup(struct shared_policy *sp, unsi
                struct sp_node *p = rb_entry(n, struct sp_node, nd);
                if (start >= p->end) {
                        n = n->rb_right;
-               } else if (end < p->start) {
+               } else if (end <= p->start) {
                        n = n->rb_left;
                } else {
                        break;


--Chuck Ebbert  15-Nov-04  22:20:16

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: Dropped patch: mm/mempolicy.c:sp_lookup()
@ 2004-11-17  3:54 Chuck Ebbert
  2004-11-17 12:08 ` Andi Kleen
  0 siblings, 1 reply; 11+ messages in thread
From: Chuck Ebbert @ 2004-11-17  3:54 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Andrew Morton, Andrea Arcangeli, linux-kernel

On Wed, 17 Nov 2004 at 02:00:20 +0100, Andi Kleen wrote:

> On Mon, Nov 15, 2004 at 11:15:51PM -0500, Chuck Ebbert wrote:
> > Andrea posted this one-liner a while ago as part of a larger patch.  He said
> > it fixed return of the wrong policy in some conditions.  Was this a valid fix?
>
> Yes it was.

  At least it wasn't dropped -- it's in -mm as part of
fix-for-mpol-mm-corruption-on-tmpfs, though it's unrelated to tmpfs.
(That patch contains three separate changes...)

  Should just this part, which changes '<' to '<=', be pushed upstream?


--Chuck Ebbert  16-Nov-04  22:54:02

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

end of thread, other threads:[~2004-11-18  5:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-16  4:15 Dropped patch: mm/mempolicy.c:sp_lookup() Chuck Ebbert
2004-11-17  1:00 ` Andi Kleen
  -- strict thread matches above, loose matches on Subject: below --
2004-11-17  3:54 Chuck Ebbert
2004-11-17 12:08 ` Andi Kleen
2004-11-17 19:13   ` Andrew Morton
2004-11-17 20:06     ` Hugh Dickins
2004-11-17 20:21       ` Andrew Morton
2004-11-17 20:29         ` Andrew Morton
2004-11-18  5:05           ` Andi Kleen
2004-11-18  3:08         ` Andrea Arcangeli
2004-11-18  3:08       ` Andrea Arcangeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox