diff options
author | Alexey Dobriyan <adobriyan@sw.ru> | 2007-05-08 03:25:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:02 -0400 |
commit | 578c8183c116e623d53b05d4c79762d053c7090f (patch) | |
tree | 783cb8471e5efdb486fc7dd4f5de53038a96f8a7 /fs/proc/inode.c | |
parent | 59cd0cbc75367b82f704f63b104117462275060d (diff) |
proc: remove pathetic ->deleted WARN_ON
WARN_ON(de && de->deleted); is sooo unreliable. Why?
proc_lookup remove_proc_entry
=========== =================
lock_kernel();
spin_lock(&proc_subdir_lock);
[find proc entry]
spin_unlock(&proc_subdir_lock);
spin_lock(&proc_subdir_lock);
[find proc entry]
proc_get_inode
==============
WARN_ON(de && de->deleted); ...
if (!atomic_read(&de->count))
free_proc_entry(de);
else
de->deleted = 1;
So, if you have some strange oops [1], and doesn't see this WARN_ON it means
nothing.
[1] try_module_get() of module which doesn't exist, two lines below
should suffice, or not?
Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/inode.c')
-rw-r--r-- | fs/proc/inode.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/proc/inode.c b/fs/proc/inode.c index d1de6378930c..b8171907c83b 100644 --- a/fs/proc/inode.c +++ b/fs/proc/inode.c | |||
@@ -146,8 +146,6 @@ struct inode *proc_get_inode(struct super_block *sb, unsigned int ino, | |||
146 | { | 146 | { |
147 | struct inode * inode; | 147 | struct inode * inode; |
148 | 148 | ||
149 | WARN_ON(de && de->deleted); | ||
150 | |||
151 | if (de != NULL && !try_module_get(de->owner)) | 149 | if (de != NULL && !try_module_get(de->owner)) |
152 | goto out_mod; | 150 | goto out_mod; |
153 | 151 | ||