From: David Miller <davem@xxxxxxxxxxxxx> Date: Fri, 03 Sep 2010 05:34:37 -0700 (PDT) > From: Wolfram Sang <w.sang@xxxxxxxxxxxxxx> > Date: Fri, 3 Sep 2010 07:53:28 +0200 > >> >>> Thanks for your analysis and suggested patch, I'll take a look at this. >> >> Thanks for your help. If we can't find something, I'll just do a bisect this >> weekend. > > Frankly, at this point, I'm beginning suspect that the procfs stuff > simply never warned at some point in the past and that the IDE > code has had this problem for a while. I just confirmed that the procfs code only started warning on removal of non-present entries this past March, so basically the IDE code has silently had this problem of not actually creating any of it's procfs nodes for some time now. Wolfram I'll look into your patch some more and integrate it, thanks. commit 12bac0d9f4dbf3445a0319beee848d15fa32775e Author: Alexey Dobriyan <adobriyan@xxxxxxxxx> Date: Fri Mar 5 13:44:00 2010 -0800 proc: warn on non-existing proc entries * warn if creation goes on to non-existent directory * warn if removal goes on from non-existing directory * warn if non-existing proc entry is removed Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx> Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> diff --git a/fs/proc/generic.c b/fs/proc/generic.c index ce2d954..08f4d71 100644 --- a/fs/proc/generic.c +++ b/fs/proc/generic.c @@ -312,8 +312,10 @@ static int __xlate_proc_name(const char *name, struct proc_dir_entry **ret, if (proc_match(len, cp, de)) break; } - if (!de) + if (!de) { + WARN(1, "name '%s'\n", name); return -ENOENT; + } cp += len + 1; } *residual = cp; @@ -818,8 +820,10 @@ void remove_proc_entry(const char *name, struct proc_dir_entry *parent) } } spin_unlock(&proc_subdir_lock); - if (!de) + if (!de) { + WARN(1, "name '%s'\n", name); return; + } spin_lock(&de->pde_unload_lock); /* -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html