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 155360 Details for
Bug 236786
dirty data is not flushed on a timely manner
[?]
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]
correct nr_unused accounting
fix-nr_unused-accounting.patch (text/plain), 1.82 KB, created by
Bryn M. Reeves
on 2007-05-24 16:11:49 UTC
(
hide
)
Description:
correct nr_unused accounting
Filename:
MIME Type:
Creator:
Bryn M. Reeves
Created:
2007-05-24 16:11:49 UTC
Size:
1.82 KB
patch
obsolete
>--- linux-2.6.9/fs/fs-writeback.c.nr_unused 2007-05-09 14:27:58.000000000 +0100 >+++ linux-2.6.9/fs/fs-writeback.c 2007-05-09 14:35:14.000000000 +0100 >@@ -230,7 +230,6 @@ > * The inode is clean, unused > */ > list_move(&inode->i_list, &inode_unused); >- inodes_stat.nr_unused++; > } > } > wake_up_inode(inode); >@@ -238,12 +237,19 @@ > } > > /* >- * Write out an inode's dirty pages. Called under inode_lock. >+ * Write out an inode's dirty pages. Called under inode_lock. Either the >+ * caller has ref on the inode (either via __iget or via syscall against an fd) >+ * or the inode has I_WILL_FREE set (via generic_forget_inode) > */ > static int > __writeback_single_inode(struct inode *inode, > struct writeback_control *wbc) > { >+ if (!atomic_read(&inode->i_count)) >+ WARN_ON(!(inode->i_state & I_WILL_FREE)); >+ else >+ WARN_ON(inode->i_state & I_WILL_FREE); >+ > if ((wbc->sync_mode != WB_SYNC_ALL) && (inode->i_state & I_LOCK)) { > list_move(&inode->i_list, &inode->i_sb->s_dirty); > return 0; >@@ -253,10 +259,8 @@ > * It's a data-integrity sync. We must wait. > */ > while (inode->i_state & I_LOCK) { >- __iget(inode); > spin_unlock(&inode_lock); > __wait_on_inode(inode); >- iput(inode); > spin_lock(&inode_lock); > } > return __sync_single_inode(inode, wbc); >@@ -549,6 +553,8 @@ > * This function commits an inode to disk immediately if it is > * dirty. This is primarily needed by knfsd. > * >+ * The caller must either have a ref on the inode or must have set I_WILL_FREE. >+ * > * Returns 0 on success else -ERR. > */ > >--- linux-2.6.9/fs/inode.c.nr_unused 2007-05-09 14:28:14.000000000 +0100 >+++ linux-2.6.9/fs/inode.c 2007-05-09 14:35:41.000000000 +0100 >@@ -1055,6 +1055,7 @@ > if (inode->i_data.nrpages) > truncate_inode_pages(&inode->i_data, 0); > clear_inode(inode); >+ wake_up_inode(inode); > destroy_inode(inode); > } >
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 236786
: 155360