Re: kfree safe in interrupt context?

Victor Yodaiken (yodaiken@fsmlabs.com)
Thu, 23 Aug 2001 21:13:17 -0600


On Sun, Aug 19, 2001 at 09:44:45PM +1000, Rusty Russell wrote:
> In message <20010817211406.A21326@hq2> you write:
> > Seems like calling kfree from interrupt context should
> > be ok, but is it?
> > If it is safe, is this considered a good thing or not?
>
> Yes, and it logically has to be, as kmalloc(..., GFP_ATOMIC) is safe
> from interrupt context.
>
> The network code does this all the time, for example.
>
> Hope that helps,

It does, but Alan answered first and also much more
eloquently. -)

-
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/