Re: [no patch] broken use of mm_release / deactivate_mm

From: Linus Torvalds (torvalds_at_osdl.org)
Date: 09/14/04

  • Next message: Alistair John Strachan: "Re: Copying huge amount of data on ReiserFS, XFS and Silicon Image 3112 cause oops."
    Date:	Tue, 14 Sep 2004 08:06:14 -0700 (PDT)
    To: Nick Piggin <nickpiggin@yahoo.com.au>
    
    

    On Tue, 14 Sep 2004, Nick Piggin wrote:
    > >
    > > I agree. Looks like the "exit_mm()" should really be a "mmput()".
    > >
    > > Can we have a few more eyes on this thing? Ingo, Nick?
    >
    > AFAIKS yes. exit_mm doesn't look legal unless its dropping the current
    > mm context. And mmput looks like it should clean up everything - it is
    > used almost exactly the same way to cleanup a failure case in copy_mm.

    Does everybody also agree that the

            if (p->active_mm)
                    mmdrop(p->active_mm);

    should also be dropped, and that mmput() does all of that correctly too?

    (Again, looking at all the counts etc, I think the answer is a resounding
    yes, but dammit, this code has obviously never gotten any testing at all,
    since it effectively never happens).

                    Linus
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Alistair John Strachan: "Re: Copying huge amount of data on ReiserFS, XFS and Silicon Image 3112 cause oops."

    Relevant Pages

    • Re: BUG: Slowdown on 3000 socket-machines tracked down
      ... Nick Piggin wrote: ... > Well I hope that scheduler developments in progress will put future ... > Find local movie times and trailers on Yahoo! ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Terrible interactivity with 2.6.0-t9-mm3
      ... On Sunday 16 November 2003 23:19, Nick Piggin wrote: ... it would be good if you could try the as disk scheduler ... Copyright 2003 by Maurice Eugene Heskett, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Time sliced CFQ io scheduler
      ... On Wed, Dec 08 2004, Nick Piggin wrote: ... but nasty for that case. ... >> Currently I think the time sliced cfq is the best all around. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: RT patch acceptance
      ... Nick Piggin wrote: ... in the mainline kernel. ... development workstation and every production system. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [RFC][PATCH 0/3] beat kswapd with the proverbial clue-bat
      ... On Sun, 5 Sep 2004, Nick Piggin wrote: ... > Hmm, and the crowning argument for not stopping at order 3 is that if we ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)