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 580329 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 (against current source)
cifs-check-s_automount-in-revalidate.patch (text/plain), 1.80 KB, created by
Ian Kent
on 2012-04-26 02:22:18 UTC
(
hide
)
Description:
Patch - check S_AUTOMOUNT in revalidate (against current source)
Filename:
MIME Type:
Creator:
Ian Kent
Created:
2012-04-26 02:22:18 UTC
Size:
1.80 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 might not invalidate the >dentry if there is a concurrent path walk. This is because the >dentry reference count will be at least 2 in this case causing >d_invalidate() to return EBUSY. So the asumption that the dentry >will be discarded then correctly instantiated via ->lookup() might >not hold. > >Signed-off-by: Ian Kent <ikent@redhat.com> >--- > > fs/cifs/dir.c | 17 ++++++++++++----- > 1 files changed, 12 insertions(+), 5 deletions(-) > > >diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c >index 2b76e28..f00cfd2 100644 >--- a/fs/cifs/dir.c >+++ b/fs/cifs/dir.c >@@ -682,12 +682,19 @@ cifs_d_revalidate(struct dentry *direntry, struct nameidata *nd) > return 0; > else { > /* >- * Forcibly invalidate automounting directory inodes >- * (remote DFS directories) so to have them >- * instantiated again for automount >+ * 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)) >- return 0; >+ 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; > } > }
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