From: pschwan Date: Thu, 20 Feb 2003 07:09:40 +0000 (+0000) Subject: don't LBUG if we can't lookup the parent in mds_open and mds_reint_create; it's X-Git-Tag: v1_7_110~2^11~183 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=d0576d43c6e91aa3ad144a203dc793f63628ffae;p=fs%2Flustre-release.git don't LBUG if we can't lookup the parent in mds_open and mds_reint_create; it's entirely possible that we're racing with rmdir() --- diff --git a/lustre/mds/mds_open.c b/lustre/mds/mds_open.c index bec31ca..e02e9fd 100644 --- a/lustre/mds/mds_open.c +++ b/lustre/mds/mds_open.c @@ -106,7 +106,6 @@ int mds_open(struct mds_update_record *rec, int offset, if (IS_ERR(parent)) { rc = PTR_ERR(parent); CERROR("parent lookup error %d\n", rc); - LBUG(); RETURN(rc); } LASSERT(parent->d_inode); @@ -201,7 +200,7 @@ int mds_open(struct mds_update_record *rec, int offset, /* dentry_open does a dput(de) and mntput(mds->mds_vfsmnt) on error */ mntget(mds->mds_vfsmnt); - file = dentry_open(dchild,mds->mds_vfsmnt, + file = dentry_open(dchild, mds->mds_vfsmnt, rec->ur_flags & ~(O_DIRECT | O_TRUNC)); if (IS_ERR(file)) GOTO(out_step_5, rc = PTR_ERR(file));