mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: Christoph Lameter <clameter@sgi.com>
Cc: linux-kernel@vger.kernel.org
Subject: SLUB: kmem_cache_destroy doesn't - version 2.
Date: Fri, 20 Apr 2007 14:28:19 +1000	[thread overview]
Message-ID: <17960.16739.870487.497750@notabene.brown> (raw)


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

             reply	other threads:[~2007-04-20  4:28 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-20  4:28 Neil Brown [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17960.16739.870487.497750@notabene.brown \
    --to=neilb@suse.de \
    --cc=clameter@sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®