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 304374 Details for
Bug 444961
softlockup when repeatedly dropping caches
[?]
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]
Proposed upstream patch to drop inode_lock across __invalidate_mapping_pages
drop_caches-drop-inode_lock.patch (text/plain), 724 bytes, created by
Bryn M. Reeves
on 2008-05-02 11:48:37 UTC
(
hide
)
Description:
Proposed upstream patch to drop inode_lock across __invalidate_mapping_pages
Filename:
MIME Type:
Creator:
Bryn M. Reeves
Created:
2008-05-02 11:48:37 UTC
Size:
724 bytes
patch
obsolete
>diff --git a/fs/drop_caches.c b/fs/drop_caches.c >index 59375ef..f5aae26 100644 >--- a/fs/drop_caches.c >+++ b/fs/drop_caches.c >@@ -14,15 +14,21 @@ int sysctl_drop_caches; > > static void drop_pagecache_sb(struct super_block *sb) > { >- struct inode *inode; >+ struct inode *inode, *toput_inode = NULL; > > spin_lock(&inode_lock); > list_for_each_entry(inode, &sb->s_inodes, i_sb_list) { > if (inode->i_state & (I_FREEING|I_WILL_FREE)) > continue; >+ __iget(inode); >+ spin_unlock(&inode_lock); > __invalidate_mapping_pages(inode->i_mapping, 0, -1, true); >+ iput(toput_inode); >+ toput_inode = inode; >+ spin_lock(&inode_lock); > } > spin_unlock(&inode_lock); >+ iput(toput_inode); > } > > void drop_pagecache(void) >-- >1.5.2.4 >
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 444961
: 304374