Whamcloud - gitweb
b=13677
authorgreen <green>
Wed, 5 Mar 2008 06:23:31 +0000 (06:23 +0000)
committergreen <green>
Wed, 5 Mar 2008 06:23:31 +0000 (06:23 +0000)
r=adilger

wait for async rpc completion in liblustre

lustre/liblustre/file.c
lustre/liblustre/super.c

index 25b425b..d341dd0 100644 (file)
@@ -480,7 +480,7 @@ int llu_iop_close(struct inode *inode)
         }
         /* if open count == 0 && stale_flag is set, should we
          * remove the inode immediately? */
-        liblustre_wait_event(0);
+        liblustre_wait_idle();
         return 0;
 }
 
index 81daee9..890d977 100644 (file)
@@ -933,7 +933,7 @@ static int llu_iop_setattr(struct pnode *pno,
         iattr.ia_ctime = CURRENT_TIME;
 
         rc = llu_setattr_raw(ino, &iattr);
-        liblustre_wait_event(0);
+        liblustre_wait_idle();
         RETURN(rc);
 }
 
@@ -1147,7 +1147,7 @@ static int llu_iop_unlink_raw(struct pnode *pno)
         if (!rc)
                 rc = llu_objects_destroy(request, dir);
         ptlrpc_req_finished(request);
-        liblustre_wait_event(0);
+        liblustre_wait_idle();
 
         RETURN(rc);
 }
@@ -1179,7 +1179,7 @@ static int llu_iop_rename_raw(struct pnode *old, struct pnode *new)
         }
 
         ptlrpc_req_finished(request);
-        liblustre_wait_event(0);
+        liblustre_wait_idle();
 
         RETURN(rc);
 }