Commit d8d29138 authored by NeilBrown's avatar NeilBrown Committed by J. Bruce Fields

sunrpc: remove 'inuse' flag from struct cache_detail.

This field is not currently in use.
Signed-off-by: default avatarNeilBrown <neilb@suse.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent db1bb44c
...@@ -78,8 +78,6 @@ struct cache_detail { ...@@ -78,8 +78,6 @@ struct cache_detail {
struct hlist_head * hash_table; struct hlist_head * hash_table;
rwlock_t hash_lock; rwlock_t hash_lock;
atomic_t inuse; /* active user-space update or lookup */
char *name; char *name;
void (*cache_put)(struct kref *); void (*cache_put)(struct kref *);
......
...@@ -362,7 +362,7 @@ void sunrpc_destroy_cache_detail(struct cache_detail *cd) ...@@ -362,7 +362,7 @@ void sunrpc_destroy_cache_detail(struct cache_detail *cd)
cache_purge(cd); cache_purge(cd);
spin_lock(&cache_list_lock); spin_lock(&cache_list_lock);
write_lock(&cd->hash_lock); write_lock(&cd->hash_lock);
if (cd->entries || atomic_read(&cd->inuse)) { if (cd->entries) {
write_unlock(&cd->hash_lock); write_unlock(&cd->hash_lock);
spin_unlock(&cache_list_lock); spin_unlock(&cache_list_lock);
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment