mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* SLUB: kmem_cache_destroy doesn't - version 2.
@ 2007-04-20  4:28 Neil Brown
  2007-04-20  5:18 ` Christoph Lameter
  0 siblings, 1 reply; 12+ messages in thread
From: Neil Brown @ 2007-04-20  4:28 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: linux-kernel


Hi again,
 I recently noticed that my slub-enabled kernel won't let me stop
and restart the NFS server.   It stops fine but on restart
it returns -ENOMEM.

It turns out that this is because kmem_cache_create is failing
because the name already exists in sysfs.

fs/nfsd/nfs4state creates 4 kmem_caches.
Two of them get shared:

  /sys/slab/nfsd4_files -> ../slab/eventpoll_pwq
  /sys/slab/nfsd4_stateids -> ../slab/kmalloc-128

When kmem_cache_destroy is called, the alias count is reduced
properly, but the alias symlink does not get removed.  So when we
try to create those caches again, it fails.

Not sure how best to fix this one.... kmem_cache_destroy currently
doesn't know which alias is being destroyed.

NeilBrown

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-04-24  1:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-20  4:28 SLUB: kmem_cache_destroy doesn't - version 2 Neil Brown
2007-04-20  5:18 ` Christoph Lameter
2007-04-20  5:35   ` Neil Brown
2007-04-20  5:38     ` Christoph Lameter
2007-04-20  5:51       ` Christoph Lameter
2007-04-23  6:44       ` Neil Brown
2007-04-23  6:48         ` Christoph Lameter
2007-04-23 20:49         ` Christoph Lameter
2007-04-24  0:34           ` Neil Brown
2007-04-24  0:42             ` Christoph Lameter
2007-04-24  0:50               ` Neil Brown
2007-04-24  1:06                 ` Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®