From fa1399b8845afbab08557f1f2c660a3d07bd6d55 Mon Sep 17 00:00:00 2001 From: green Date: Wed, 5 Mar 2008 06:23:31 +0000 Subject: [PATCH] b=13677 r=adilger wait for async rpc completion in liblustre --- lustre/liblustre/file.c | 2 +- lustre/liblustre/super.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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); } -- 1.8.3.1