~ubuntu-branches/ubuntu/vivid/aufs/vivid

« back to all changes in this revision

Viewing changes to fs/aufs/wkq.c

  • Committer: Bazaar Package Importer
  • Author(s): Julian Andres Klode
  • Date: 2008-08-21 14:58:54 UTC
  • mfrom: (1.1.8 upstream) (4.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080821145854-4b49x09r4zmvlk5o
Tags: 0+20080719-4
01_vserver_apparmor.dpatch: [UPDATE] Disable vserver patches on kernel 
2.6.26, because they are not needed anymore. (Closes: #495921)

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
/*
20
20
 * workqueue for asynchronous/super-io/delegated operations
21
21
 *
22
 
 * $Id: wkq.c,v 1.31 2008/06/02 02:35:50 sfjro Exp $
 
22
 * $Id: wkq.c,v 1.33 2008/06/30 03:50:20 sfjro Exp $
23
23
 */
24
24
 
25
25
#include <linux/module.h>
220
220
        }, *wkinfo = &_wkinfo;
221
221
 
222
222
        LKTRTrace("0x%x\n", flags);
223
 
        /* in dlgt mode, inotify will be fired from aufsd */
 
223
        /* in dlgt mode, inotify may be fired from aufsd? */
224
224
        AuDebugOn(au_ftest_wkq(flags, DLGT) && au_test_wkq(current));
225
225
 
226
226
        err = 0;
233
233
                 * it highly depends upon the implementation of workqueue.
234
234
                 */
235
235
                err = -ENOMEM;
236
 
                wkinfo = kmalloc(sizeof(*wkinfo), GFP_TEMPORARY);
 
236
                wkinfo = kmalloc(sizeof(*wkinfo), GFP_NOFS);
237
237
                if (unlikely(!wkinfo))
238
238
                        goto out;
239
239
                err = 0;
300
300
 
301
301
        /* '+1' is for accounting  of nowait queue */
302
302
        err = -ENOMEM;
303
 
        au_wkq = kcalloc(aufs_nwkq + 1, sizeof(*au_wkq), GFP_KERNEL);
 
303
        au_wkq = kcalloc(aufs_nwkq + 1, sizeof(*au_wkq), GFP_NOFS);
304
304
        if (unlikely(!au_wkq))
305
305
                goto out;
306
306