Commit b1321130 authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] knfsd: Don't assume a reader on an RPC cache channel at statup.

Each cache channel remembers if there was a reader recently.
If there wasn't, then it doesn't bother with an up-call.
Currently, it initialises thinking there was a reader
recently incase the reader starts shortly afterwards.  However
this causes problems when a reader doesn't start soon, and
isn't necessary as the reader can easily be started before
the cache is initialised (e.g. before nfsd is started).
parent 65c879fb
...@@ -183,7 +183,7 @@ void cache_register(struct cache_detail *cd) ...@@ -183,7 +183,7 @@ void cache_register(struct cache_detail *cd)
cd->nextcheck = 0; cd->nextcheck = 0;
cd->entries = 0; cd->entries = 0;
atomic_set(&cd->readers, 0); atomic_set(&cd->readers, 0);
cd->last_close = get_seconds(); cd->last_close = 0;
list_add(&cd->others, &cache_list); list_add(&cd->others, &cache_list);
spin_unlock(&cache_list_lock); spin_unlock(&cache_list_lock);
} }
......
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