Whamcloud - gitweb
- disable fo_alloc_sem
authoralex <alex>
Thu, 1 Sep 2005 22:53:41 +0000 (22:53 +0000)
committeralex <alex>
Thu, 1 Sep 2005 22:53:41 +0000 (22:53 +0000)
- don't wait for transaction commit
  NOTE: to evaluate impact

lustre/obdfilter/filter_io_26.c

index 8c1eb35..c09586e 100644 (file)
@@ -369,7 +369,7 @@ int filter_direct_io(int rw, struct dentry *dchild, void *iobuf,
         
         if (rw == OBD_BRW_WRITE) {
                 create = 1;
-                sem = &obd->u.filter.fo_alloc_lock;
+                //sem = &obd->u.filter.fo_alloc_lock;
         }
 
         rc = fsfilt_map_inode_pages(obd, inode,
@@ -534,10 +534,12 @@ int filter_commitrw_write(struct obd_export *exp, struct obdo *oa,
 
         fsfilt_check_slow(now, obd_timeout, "direct_io");
 
+#if 0   /* disabled to evaluate impact -bzzz */
         err = fsfilt_commit_wait(obd, inode, wait_handle);
         if (rc == 0)
                 rc = err;
-   
+#endif
+
         fsfilt_check_slow(now, obd_timeout, "commitrw commit");
 
 cleanup: