[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <200803291215.37108.nickpiggin@yahoo.com.au>
Date: Sat, 29 Mar 2008 12:15:36 +1100
From: Nick Piggin <nickpiggin@...oo.com.au>
To: "Steve French" <smfrench@...il.com>
Cc: lkml <linux-kernel@...r.kernel.org>
Subject: Re: Can kmem_cache_free block?
On Saturday 29 March 2008 06:23, Steve French wrote:
> Is kmem_cache_free safe to call while holding a spinlock (can
> kmem_cache_free ever block or recurse into a file system)?
>
> I see it trying to grab just another spinlock which is probably fine
> (but was worried whether any of the worker functions called a sem) ...
> my assumption is that it would be safe, but the man page doesn't
> mention when it can be used safely.
Yes you can call it from any context.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists