lkml.org 
[lkml]   [2006]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: vfree with locks held
Hi,
I am trying to develop a modification of the fifo qdisc for a
small networking project of my own. I need to allocate a significantly
large chunk of memory (about 4M) for every qdisc instance. I used
__vmalloc(size, GFP_ATOMIC, PAGE_KERNEL) for this understanding that
fifo_init (net/sched/sch_fifo.c) is called with locks held. However, I
also need to free this memory up once the qdisc is destroyed. I tried
calling vfree() but it doesn't like being called with locks held. Is
there a way to free this memory with locks held using some variant of
vfree()?

Ritesh


--
This is not an ad. I hate signature ads.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-04-04 05:42    [W:0.159 / U:2.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site