]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/inotify_user.c
[PATCH] inotify: fix deadlock found by lockdep
[linux-2.6-omap-h63xx.git] / fs / inotify_user.c
index f2386442adeeeafad47132049aea39284fc07d98..017cb0f134d6aa600f5c37296b6c786bacb6cf7c 100644 (file)
@@ -187,7 +187,7 @@ static struct inotify_kernel_event * kernel_event(s32 wd, u32 mask, u32 cookie,
 {
        struct inotify_kernel_event *kevent;
 
-       kevent = kmem_cache_alloc(event_cachep, GFP_KERNEL);
+       kevent = kmem_cache_alloc(event_cachep, GFP_NOFS);
        if (unlikely(!kevent))
                return NULL;