Re: NFS still has caching problem

Matthias Urlichs (smurf@smurf.noris.de)
Fri, 12 Jul 1996 07:21:25 +0100


In linux.dev.kernel, article <Pine.LNX.3.91.960711074756.13624B-100000@=
linux.cs.Helsinki.FI>,
Linus Torvalds <torvalds@cs.helsinki.fi> writes:
>=20
> The reason that Linux _does_ seem to work if the size has changed is =
that=20
> there is a simple and stupid check that tries to avoid _most_ cases w=
ith=20
> old caches. It simply notices that "uhhuh, the server has another siz=
e=20
> than the one we've cached - better invalidate our cache".
>=20
Seems to me that to extend that test to the modification date of the fi=
le
should be pretty straightforward and won't hurt performance..?

> So instead of the patch you sent (which looks fine, but it's a bit mo=
re=20
> brute-force than I'd like),

Hmm, the only brute-force thing is the check on the file mode.

--=20
It pays to be obvious, especially if you have a reputation for subtlety=
.
-- Salvor Hardin, in Isaac Asimov's "Foundatio=
n"
--=20
Matthias Urlichs \ noris network GmbH / Xlink-POP N=FCrnberg=
=20
Schleiermacherstra=DFe 12 \ Linux+Internet / EMail: urlichs@nor=
is.de
90491 N=FCrnberg (Germany) \ Consulting+Programming+Networking+etc=
'ing
PGP: 1024/4F578875 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 D=
E
Click <A HREF=3D"http://info.noris.de/~smurf/finger">here</A>. =
42