From d0576d43c6e91aa3ad144a203dc793f63628ffae Mon Sep 17 00:00:00 2001 From: pschwan Date: Thu, 20 Feb 2003 07:09:40 +0000 Subject: [PATCH] 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() --- lustre/mds/mds_open.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)); -- 1.8.3.1