From: Andrea Arcangeli Date: Thu, 13 Jan 2011 23:47:06 +0000 (-0800) Subject: thp: allocate memory in khugepaged outside of mmap_sem write mode X-Git-Tag: v2.6.38-rc1~120 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce83d2174ea9c3d72d5821cf3ebc974e36391bf7;p=pandora-kernel.git thp: allocate memory in khugepaged outside of mmap_sem write mode This tries to be more friendly to filesystem in userland, with userland backends that allocate memory in the I/O paths and that could deadlock if khugepaged holds the mmap_sem write mode of the userland backend while allocating memory. Memory allocation may wait for writeback I/O completion from the daemon that may be blocked in the mmap_sem read mode if a page fault happens and the daemon wasn't using mlock for the memory required for the I/O submission and completion. Signed-off-by: Andrea Arcangeli Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed