Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Roger Tsang <rogertsang <at> users.sourceforge.net>
Subject: [SSI] openssi/kernel.patches/common kernel2613.patch,1.1,1.2
Newsgroups: gmane.linux.cluster.ssic.cvs
Date: Saturday 5th January 2008 02:39:05 UTC (over 9 years ago)
Update of /cvsroot/ssic-linux/openssi/kernel.patches/common
In directory
sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv8706/kernel.patches/common

Modified Files:
      Tag: OPENSSI-FC
	kernel2613.patch 
Log Message:
Fix extra spin_unlock in cfs_flush_inode().  This bug does not manifest
itself
in existing binary releases because KERNEL2613 compilation directive is
defined by default.  (#undef KERNEL2613) (ssic-linux-Bugs-1864069)


Index: kernel2613.patch
===================================================================
RCS file:
/cvsroot/ssic-linux/openssi/kernel.patches/common/kernel2613.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- kernel2613.patch	5 Aug 2007 02:25:15 -0000	1.1
+++ kernel2613.patch	5 Jan 2008 02:39:03 -0000	1.2
@@ -172,7 +172,7 @@
  	LIST_HEAD(head);
  	int			res,
  				error = 0;
-@@ -1351,24 +1403,46 @@ int cfs_flush_inode(struct inode *inode,
+@@ -1351,23 +1403,46 @@ int cfs_flush_inode(struct inode *inode,
  	spin_lock(&cfs_wreq_lock);
  	res = cfs_scan_dirty(inode, &head, idx_start, npages);
  	spin_unlock(&cfs_wreq_lock);
@@ -212,14 +212,14 @@
  	res = cfs_scan_commit(inode, &head, idx_start, npages);
 +#else
 +	res = cfs_scan_commit(inode, &head, 0, 0);
++ 	spin_unlock(&cfs_wreq_lock);
 +#endif
- 	spin_unlock(&cfs_wreq_lock);
  	if (res) {
 +#ifndef KERNEL2613
  		res += cfs_scan_commit(inode, &head, 0, 0);
  		spin_unlock(&cfs_wreq_lock);
  		error = cfs_commit_list(&head, how);
-@@ -1376,7 +1450,12 @@ int cfs_commit_inode(struct inode *inode
+@@ -1376,7 +1451,12 @@ int cfs_commit_inode(struct inode *inode
  		spin_unlock(&cfs_wreq_lock);
  	if (error < 0)
  		return error;
@@ -233,7 +233,7 @@
  	return res;
  }
  
-@@ -1396,7 +1475,11 @@ int cfs_sync_inode(struct inode *inode, 
+@@ -1396,7 +1476,11 @@ int cfs_sync_inode(struct inode *inode, 
  		if (error == 0)
  			error = cfs_flush_inode(inode, idx_start, npages, how);
  		if (error == 0)


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
 
CD: 15ms