From: green Date: Wed, 5 Mar 2008 06:23:31 +0000 (+0000) Subject: b=13677 X-Git-Tag: v1_7_0_51~177 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=fa1399b8845afbab08557f1f2c660a3d07bd6d55;hp=87456b5d64ce63c79c66b373c1059d89b9c08bc5 b=13677 r=adilger wait for async rpc completion in liblustre --- diff --git a/lustre/liblustre/file.c b/lustre/liblustre/file.c index 25b425b..d341dd0 100644 --- a/lustre/liblustre/file.c +++ b/lustre/liblustre/file.c @@ -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; } diff --git a/lustre/liblustre/super.c b/lustre/liblustre/super.c index 81daee9..890d977 100644 --- a/lustre/liblustre/super.c +++ b/lustre/liblustre/super.c @@ -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); }