Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 306286 Details for
Bug 446083
Ensure that 'noac' and/or 'actimeo=0' turn off attribute caching
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
[PATCH] NFS: Fix nfs_attribute_timeout to ensure it works with actimeo=0
linux-2.6.9-fix_nfs_attribute_timeout.dif (text/plain), 1.38 KB, created by
Trond Myklebust
on 2008-05-21 17:52:45 UTC
(
hide
)
Description:
[PATCH] NFS: Fix nfs_attribute_timeout to ensure it works with actimeo=0
Filename:
MIME Type:
Creator:
Trond Myklebust
Created:
2008-05-21 17:52:45 UTC
Size:
1.38 KB
patch
obsolete
>From: Trond Myklebust <Trond.Myklebust@netapp.com> >Date: Tue, 29 Apr 2008 17:01:02 -0400 >NFS: Fix nfs_attribute_timeout to ensure it works with actimeo=0 > >Both the 'noac' and 'actimeo=0' mount options should ensure that attributes >are not cached, however a bug in nfs_attribute_timeout() means that >currently, the attributes may in fact get cached for up to one jiffy. This >has been seen to cause corruption in some applications. > >The reason for the bug is that the time_in_range() test returns 'true' as >long as the current time lies between nfsi->read_cache_jiffies and >nfsi->read_cache_jiffies + nfsi->attrtimeo. In other words, if jiffies >equals nfsi->read_cache_jiffies, then we still cache the attribute data. > >Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> >--- > > fs/nfs/inode.c | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) > >diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c >index cdd20f2..2bb58f9 100644 >--- a/fs/nfs/inode.c >+++ b/fs/nfs/inode.c >@@ -1084,6 +1084,13 @@ int nfs_attribute_timeout(struct inode *inode) > > if (nfs_have_delegation(inode, FMODE_READ)) > return 0; >+ /* >+ * Special case: if the attribute timeout is set to 0, then we >+ * treat the cache as having expired (unless we >+ * have a delegation). >+ */ >+ if (nfsi->attrtimeo == 0) >+ return 1; > return time_after(jiffies, nfsi->read_cache_jiffies+nfsi->attrtimeo); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 446083
:
306286
|
308709