Re: 2.6.13-mm3 BUG in ntfs or slab

Anton Altaparmakov
2005-09-12T14:45:47Z

On Mon, 2005-09-12 at 16:17 +0200, Jiri Slaby wrote:
> This BUG causes freeze of applications, such as beep-media-player (e.g.
> uninterruptible sleep in futex with no wake), ls (un. sleep, i don't know
> where), bash, when listing ntfs dirs.

Ok, it is official. I can't read. All my fault. Brown paperbag time.

This should fix it:

diff --git a/fs/ntfs/malloc.h b/fs/ntfs/malloc.h
--- a/fs/ntfs/malloc.h
+++ b/fs/ntfs/malloc.h
@@ -45,7 +45,7 @@ static inline void *__ntfs_malloc(unsign
if (likely(size <= PAGE_SIZE)) {
BUG_ON(!size);
/* kmalloc() has per-CPU caches so is faster for now. */
- return kmalloc(PAGE_SIZE, gfp_mask);
+ return kmalloc(PAGE_SIZE, gfp_mask & ~__GFP_HIGHMEM);
/* return (void *)__get_free_page(gfp_mask); */
}
if (likely(size >> PAGE_SHIFT < num_physpages))

Best regards,

Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/