Whamcloud - gitweb
b=7231
authoralex <alex>
Tue, 2 Aug 2005 15:43:33 +0000 (15:43 +0000)
committeralex <alex>
Tue, 2 Aug 2005 15:43:33 +0000 (15:43 +0000)
 - wait on bio's completion after commit. to evaluate performance impact

lustre/obdfilter/filter_io_26.c

index 18a3796..5c05356 100644 (file)
@@ -289,8 +289,6 @@ int filter_do_bio(struct obd_device *obd, struct inode *inode,
         }
                         
  out:
-        wait_event(dreq->dr_wait, atomic_read(&dreq->dr_numreqs) == 0);
-
         if (rc == 0)
                 rc = dreq->dr_error;
         RETURN(rc);
@@ -540,6 +538,8 @@ int filter_commitrw_write(struct obd_export *exp, struct obdo *oa,
 
         fsfilt_check_slow(now, obd_timeout, "commitrw commit");
 
+        wait_event(dreq->dr_wait, atomic_read(&dreq->dr_numreqs) == 0);
+
 cleanup:
         filter_grant_commit(exp, niocount, res);