lkml.org 
[lkml]   [2003]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: duplicate entry check in kmem_cache_create
Steve French <smfrench@austin.rr.com> wrote:
>
> Is there a recommended way to check to see if a slab cache with
> a specific name exists before calling kmem_cache_create?
>
> I was able to force it into the BUG() at about line 1160 of slab.c by
> removing my
> module (rmmod -f) while some of my slab cache objects (e.g. private inode
> info) were still in use, and then reloading my module which called
> kmem_cache_create with a name that already existed.

errr, why on earth was the filesystem unloadable when it still had live
objects floating about?

At the very least, if the slab code tries to call a destructor it will ruin
your whole day.


-
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: 2005-03-22 13:36    [W:0.038 / U:0.564 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site