* remove_proc_entry behaviour
@ 2002-08-12 14:45 Jan NOwaK
0 siblings, 0 replies; only message in thread
From: Jan NOwaK @ 2002-08-12 14:45 UTC (permalink / raw)
To: linux-kernel
Hello linux-kernel,
I'm writing a patch that uses proc filesystem, and allows creating
entries in one of /proc subdirectory. They are created by proc_mkdir
and proc_symlink. But there is a problem when they are to be removed.
I use remove_proc_entry. They are deleted, but I get the message:
remove_proc_entry: lease/test busy, count=1
de_put: deferred delete of test
I found that first line is generated by the following code in
remove_proc_entry:
if (!atomic_read(&de->count))
free_proc_entry(de);
else {
de->deleted = 1;
printk("remove_proc_entry: %s/%s busy, count=%d\n",
parent->name, de->name, atomic_read(&de->count));
}
The presence of printk suggests that something goes wrong. Is it true?
What is the proper way of removing proc entry that wouldn't generate
this message? I get it although I'm sure that entry isn't used by
anything else...
nok
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-08-12 14:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-12 14:45 remove_proc_entry behaviour Jan NOwaK
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).