[Ocfs2-commits] mfasheh commits r1685 - branches/dlm-glue/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Wed Dec 1 19:43:47 CST 2004
Author: mfasheh
Date: 2004-12-01 19:43:45 -0600 (Wed, 01 Dec 2004)
New Revision: 1685
Modified:
branches/dlm-glue/src/dlmglue.c
Log:
* more usefull tracing
Modified: branches/dlm-glue/src/dlmglue.c
===================================================================
--- branches/dlm-glue/src/dlmglue.c 2004-12-01 13:18:09 UTC (rev 1684)
+++ branches/dlm-glue/src/dlmglue.c 2004-12-02 01:43:45 UTC (rev 1685)
@@ -866,6 +866,12 @@
LOG_ENTRY();
+#ifdef OCFS2_VERBOSE_LOCKING_TRACE
+ printk("ocfs2: (%u) inode %llu, take %s DATA lock\n",
+ current->pid, OCFS_I(inode)->ip_blkno,
+ write ? "EXMODE" : "PRMODE");
+#endif
+
lockres = &OCFS_I(inode)->ip_data_lockres;
level = write ? LKM_EXMODE : LKM_PRMODE;
@@ -911,6 +917,12 @@
int level = write ? LKM_EXMODE : LKM_PRMODE;
ocfs2_lock_res *lockres = &OCFS_I(inode)->ip_data_lockres;
+#ifdef OCFS2_VERBOSE_LOCKING_TRACE
+ printk("ocfs2: (%u) inode %llu drop %s DATA lock\n",
+ OCFS_I(inode)->ip_blkno, current->pid,
+ write ? "EXMODE" : "PRMODE");
+#endif
+
ocfs2_cluster_unlock(OCFS2_SB(inode->i_sb), lockres, level);
}
@@ -1140,8 +1152,9 @@
LOG_ENTRY();
#ifdef VERBOSE_LOCKING_TRACE
- printk("Taking %s lock on inode %llu.\n",
- ex ? "EXMODE" : "PRMODE", OCFS_I(inode)->ip_blkno);
+ printk("ocfs2: (%u) inode %llu, take %s META lock\n",
+ OCFS_I(inode)->ip_blkno, current->pid,
+ ex ? "EXMODE" : "PRMODE");
#endif
if (!(flags & OCFS2_META_LOCK_RECOVERY)) {
@@ -1207,6 +1220,12 @@
int level = ex ? LKM_EXMODE : LKM_PRMODE;
ocfs2_lock_res *lockres = &OCFS_I(inode)->ip_meta_lockres;
+#ifdef OCFS2_VERBOSE_LOCKING_TRACE
+ printk("ocfs2: (%u) inode %llu drop %s META lock\n",
+ OCFS_I(inode)->ip_blkno, current->pid,
+ ex ? "EXMODE" : "PRMODE");
+#endif
+
ocfs2_cluster_unlock(OCFS2_SB(inode->i_sb), lockres, level);
}
More information about the Ocfs2-commits
mailing list