[Ocfs2-commits] mfasheh commits r1290 - trunk/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Tue Jul 20 14:08:18 CDT 2004


Author: mfasheh
Date: 2004-07-20 13:08:17 -0500 (Tue, 20 Jul 2004)
New Revision: 1290

Modified:
   trunk/src/super.c
Log:
* oop, fix an unlocked i/o. should have no measurable performance
  impact, but will save us from corrupting things!



Modified: trunk/src/super.c
===================================================================
--- trunk/src/super.c	2004-07-20 16:21:40 UTC (rev 1289)
+++ trunk/src/super.c	2004-07-20 18:08:17 UTC (rev 1290)
@@ -711,9 +711,11 @@
 		goto bail;
 	}
 
+	down_read(&OCFS_I(inode)->ip_io_sem);
 	status = ocfs_read_bh(osb,
 			      OCFS_I(inode)->ip_blkno << inode->i_sb->s_blocksize_bits,
 			      &bh, OCFS_BH_CACHED, inode);
+	up_read(&OCFS_I(inode)->ip_io_sem);
 	if (status < 0) {
 		LOG_ERROR_STR("failed to read bitmap data");
 		ret = -EIO;



More information about the Ocfs2-commits mailing list