~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to net/9p/util.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
 
68
68
/**
69
69
 * p9_idpool_destroy - create a new per-connection id pool
70
 
 * @p: idpool to destory
 
70
 * @p: idpool to destroy
71
71
 */
72
72
 
73
73
void p9_idpool_destroy(struct p9_idpool *p)
92
92
        unsigned long flags;
93
93
 
94
94
retry:
95
 
        if (idr_pre_get(&p->pool, GFP_KERNEL) == 0)
96
 
                return 0;
 
95
        if (idr_pre_get(&p->pool, GFP_NOFS) == 0)
 
96
                return -1;
97
97
 
98
98
        spin_lock_irqsave(&p->lock, flags);
99
99