summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-01-20 03:17:23 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2004-01-20 03:17:23 -0800
commitd54eb7239f5dcc41157ad80d2e186f68ed1e54a0 (patch)
treeff570243fb407941558d7137f2b95eb62ca7cdd2 /include
parent31e43b1bf6175e60f2f08bc3619e7724133c627d (diff)
[PATCH] NFS/RPC modprobe -r sunrpc causes an oops
From: Steve Dickson <SteveD@redhat.com> Here is a patch for the 2.6.1 kernel that fixes an oops that occurs when the sunrpc module is unloaded. The problem was the RPC cache_register() call was not saving entry pointers to the procfs entries it was creating. So when it came time to dismantle the entires, a BUG_ON() was tripped in remove_proc_entry() since the tree was not broken down completely. (acked by neilb)
Diffstat (limited to 'include')
-rw-r--r--include/linux/sunrpc/cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h
index a9575c349cfe..299b31438ffc 100644
--- a/include/linux/sunrpc/cache.h
+++ b/include/linux/sunrpc/cache.h
@@ -94,6 +94,8 @@ struct cache_detail {
/* fields for communication over channel */
struct list_head queue;
struct proc_dir_entry *proc_ent;
+ struct proc_dir_entry *flush_ent, *channel_ent, *content_ent;
+
atomic_t readers; /* how many time is /chennel open */
time_t last_close; /* it no readers, when did last close */
};