Re: PF_MEMALLOC in 2.6

From: Stephen C. Tweedie (sct_at_redhat.com)
Date: 08/19/04

  • Next message: Ingo Molnar: "Re: [patch] voluntary-preempt-2.6.8.1-P4"
    To: Pete Zaitcev <zaitcev@redhat.com>
    Date:	19 Aug 2004 09:46:18 +0100
    
    

    Hi,

    On Thu, 2004-08-19 at 07:55, Pete Zaitcev wrote:
    > The PF_MEMALLOC is required on usb-storage threads in 2.4, because ext3
    > will deadlock and otherwise misbehave when it's trying to write out
    > dirty pages under memory pressure.

    > I received a bug report today from an FC3T1 user with same symptoms
    > as 2.4. But I'm entirely clueless in the way VM operates. Comments?

    > @@ -285,7 +285,7 @@ static int usb_stor_control_thread(void
    > - current->flags |= PF_NOFREEZE;
    > + current->flags |= PF_NOFREEZE|PF_MEMALLOC;

    Looks entirely reasonable to me.

    --Stephen

    -
    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: Ingo Molnar: "Re: [patch] voluntary-preempt-2.6.8.1-P4"

    Relevant Pages

    • PF_MEMALLOC in 2.6
      ... will deadlock and otherwise misbehave when it's trying to write out ... dirty pages under memory pressure. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: PF_MEMALLOC in 2.6
      ... > dirty pages under memory pressure. ... > I received a bug report today from an FC3T1 user with same symptoms ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: PF_MEMALLOC in 2.6
      ... > dirty pages under memory pressure. ... it may also affect the error handlers which do not operate in that ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: statfs() / statvfs() syscall ballsup...
      ... > are writing to the same device, and you need to force a read in order ... and dirty pages are skipped. ... POSIX does not define the fadvise() semantics very clearly, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] ppc64: Fix possible race with set_pte on a present PTE
      ... places want to actually update just the dirty and accessed bits. ... we should be able to have a BUG() in "set_pte" if the entry ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)

    Loading