Messages in this thread | | | Date | Mon, 3 Apr 2006 22:40:04 -0500 | From | "Ritesh Kumar" <> | Subject | Re: 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/
| |