Whamcloud - gitweb
b=23645 remove another i_mutex warning with 2.6.32
authorJohann Lombardi <johann@sun.com>
Thu, 7 Oct 2010 20:05:25 +0000 (22:05 +0200)
committerJohann Lombardi <johann.lombardi@oracle.com>
Thu, 7 Oct 2010 20:08:38 +0000 (22:08 +0200)
hold inode mutex before calling lookup_on_len() when creating
objects on MDS.

lustre/mds/mds_fs.c

index 58ee4d6..13d565b 100644 (file)
@@ -977,7 +977,7 @@ int mds_obd_create(struct obd_export *exp, struct obdo *oa,
         push_ctxt(saved, &exp->exp_obd->obd_lvfs_ctxt, &ucred);
 
         sprintf(fidname, "%u.%u", tmpname, current->pid);
-        dchild = lookup_one_len(fidname, mds->mds_objects_dir, strlen(fidname));
+        dchild = ll_lookup_one_len(fidname, mds->mds_objects_dir, strlen(fidname));
         if (IS_ERR(dchild)) {
                 CERROR("getting neg dentry for obj: %u\n", tmpname);
                 GOTO(out_pop, rc = PTR_ERR(dchild));