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 580327 Details for
Bug 786149
CIFS DFS doesn't work in kernel versions 2.6.32-220.x.x.el6.x86_64
[?]
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 - check S_AUTOMOUNT in revalidate
cifs-check-s_automount-in-revalidate-2.patch (text/plain), 1.72 KB, created by
Ian Kent
on 2012-04-26 02:19:06 UTC
(
hide
)
Description:
Patch - check S_AUTOMOUNT in revalidate
Filename:
MIME Type:
Creator:
Ian Kent
Created:
2012-04-26 02:19:06 UTC
Size:
1.72 KB
patch
obsolete
>cifs - check S_AUTOMOUNT in revalidate > >From: Ian Kent <ikent@redhat.com> > >Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=786149 > >When revalidating a dentry, if the inode wasn't known to be a dfs >entry when the dentry was instantiated, such as when created via >->readdir(), the DCACHE_NEED_AUTOMOUNT flag needs to be set on the >dentry in ->d_revalidate(). > >The false return from cifs_d_revalidate(), due to the inode now >being marked with the S_AUTOMOUNT flag, will not invalidate the >dentry because the dentry reference count will be at least 2 for >the case where a ->readdir() has previously bee done. Which means >the asumption that the dentry will be discarded then correctly >instantiated via ->lookup() does not hold. > >Signed-off-by: Ian Kent <ikent@redhat.com> >--- > > fs/cifs/dir.c | 17 +++++++++++++++++ > 1 files changed, 17 insertions(+), 0 deletions(-) > > >diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c >index d2c1fcb..99b52eb 100644 >--- a/fs/cifs/dir.c >+++ b/fs/cifs/dir.c >@@ -662,6 +662,23 @@ cifs_d_revalidate(struct dentry *direntry, struct nameidata *nd) > if (direntry->d_inode) { > if (cifs_revalidate_dentry(direntry)) > return 0; >+ else { >+ /* >+ * If the inode wasn't known to be a dfs entry when >+ * the dentry was instantiated, such as when created >+ * via ->readdir(), it needs to be set now since the >+ * attributes will have been updated by >+ * cifs_revalidate_dentry(). >+ */ >+ if (IS_AUTOMOUNT(direntry->d_inode) && >+ !(direntry->d_flags & DCACHE_NEED_AUTOMOUNT)) { >+ spin_lock(&direntry->d_lock); >+ direntry->d_flags |= DCACHE_NEED_AUTOMOUNT; >+ spin_unlock(&direntry->d_lock); >+ } >+ >+ return 1; >+ } > } else { > cFYI(1, "neg dentry 0x%p name = %s", > direntry, direntry->d_name.name);
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 786149
:
567951
|
567961
|
567962
|
568665
|
568666
|
577804
| 580327 |
580329
|
581138