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 298048 Details for
Bug 433249
[EMC 4.7 bug] nfs_access_cache_shrinker() race with umount
[?]
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 rediffed for RHEL4 (55.0.12)
nfs_access_cache_shrinker-race.el4.patch (text/plain), 1006 bytes, created by
Bryn M. Reeves
on 2008-03-14 13:49:24 UTC
(
hide
)
Description:
Patch rediffed for RHEL4 (55.0.12)
Filename:
MIME Type:
Creator:
Bryn M. Reeves
Created:
2008-03-14 13:49:24 UTC
Size:
1006 bytes
patch
obsolete
>diff -up linux-2.6.9/fs/nfs/dir.c.access_shrinker linux-2.6.9/fs/nfs/dir.c >--- linux-2.6.9/fs/nfs/dir.c.access_shrinker 2008-03-14 12:59:32.000000000 +0000 >+++ linux-2.6.9/fs/nfs/dir.c 2008-03-14 13:00:39.000000000 +0000 >@@ -1698,13 +1698,19 @@ int nfs_access_cache_shrinker(int nr_to_ > spin_lock(&nfs_access_lru_lock); > restart: > list_for_each_entry(nfsi, &nfs_access_lru_list, access_cache_inode_lru) { >+ struct rw_semaphore *s_umount; > struct inode *inode; > > if (nr_to_scan-- == 0) > break; >+ s_umount = &nfsi->vfs_inode.i_sb->s_umount; >+ if (!down_read_trylock(s_umount)) >+ continue; > inode = igrab(&nfsi->vfs_inode); >- if (inode == NULL) >+ if (inode == NULL) { >+ up_read(s_umount); > continue; >+ } > spin_lock(&inode->i_lock); > if (list_empty(&nfsi->access_cache_entry_lru)) > goto remove_lru_entry; >@@ -1722,6 +1728,7 @@ remove_lru_entry: > } > spin_unlock(&inode->i_lock); > iput(inode); >+ up_read(s_umount); > goto restart; > } > spin_unlock(&nfs_access_lru_lock);
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 433249
:
296980
|
297966
|
298048
|
299221