diff options
author | 2005-03-31 21:47:49 +0000 | |
---|---|---|
committer | 2005-03-31 21:47:49 +0000 | |
commit | 3069b727dc5725cd896a847e8e5b07be7bb5de5a (patch) | |
tree | aee8c635f97af83d7ca2a7489edbe2f3e3e22d82 | |
parent | re-commit marius commit: (diff) | |
download | wireguard-openbsd-3069b727dc5725cd896a847e8e5b07be7bb5de5a.tar.xz wireguard-openbsd-3069b727dc5725cd896a847e8e5b07be7bb5de5a.zip |
re-commit marius commit:
> fix preposterous time warnings in the nfs client; caused by false hits
> in the attribute cache
> based on original fix by pedro@, ok pedro@, tedu@; testing kettenis@
was backed out because too close to release
put back in now, since tree is unlocked. unfortunately it appears that even
after MANY MAILS ON THIS SUBJECT, NOONE HAS DONE THIS. WTF? Noone wants
to FINISH jobs anymore?
-rw-r--r-- | sys/nfs/nfs_subs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c index 4a8d1e0306e..ee9ef17a8d7 100644 --- a/sys/nfs/nfs_subs.c +++ b/sys/nfs/nfs_subs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_subs.c,v 1.52 2005/02/01 15:00:04 pvalchev Exp $ */ +/* $OpenBSD: nfs_subs.c,v 1.53 2005/03/31 21:47:49 deraadt Exp $ */ /* $NetBSD: nfs_subs.c,v 1.27.4.3 1996/07/08 20:34:24 jtc Exp $ */ /* @@ -1303,7 +1303,8 @@ nfs_getattrcache(vp, vaper) struct nfsnode *np = VTONFS(vp); struct vattr *vap; - if ((time_second - np->n_attrstamp) >= nfs_attrtimeo(np)) { + if (np->n_attrstamp == 0 || + (time_second - np->n_attrstamp) >= nfs_attrtimeo(np)) { nfsstats.attrcache_misses++; return (ENOENT); } |