Whamcloud - gitweb
LU-10092 First phase of persistent client cache project merging 14/35214/1
authorOleg Drokin <green@whamcloud.com>
Thu, 13 Jun 2019 04:36:36 +0000 (00:36 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 13 Jun 2019 04:37:28 +0000 (00:37 -0400)
Merge remote-tracking branch 'origin/pcc'

Change-Id: I87a681c54712926d336c983dd8e56b58ebf4b612
Signed-off-by: Oleg Drokin <green@whamcloud.com>
14 files changed:
1  2 
lustre/autoconf/lustre-core.m4
lustre/include/md_object.h
lustre/include/obd.h
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/llite/dir.c
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/namei.c
lustre/llite/super25.c
lustre/lmv/lmv_intent.c
lustre/lmv/lmv_obd.c
lustre/mdd/mdd_dir.c
lustre/utils/lfs.c

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -177,15 -184,9 +184,16 @@@ static void __exit lustre_exit(void
        cl_env_put(cl_inode_fini_env, &cl_inode_fini_refcheck);
        vvp_global_fini();
  
 +#ifdef HAVE_INODE_I_RCU
 +      /*
 +       * Make sure all delayed rcu free inodes are flushed before we
 +       * destroy cache.
 +       */
 +      rcu_barrier();
 +#endif
        kmem_cache_destroy(ll_inode_cachep);
        kmem_cache_destroy(ll_file_data_slab);
+       kmem_cache_destroy(pcc_inode_slab);
  }
  
  MODULE_AUTHOR("OpenSFS, Inc. <http://www.lustre.org/>");
@@@ -350,13 -352,14 +350,14 @@@ retry
                if (IS_ERR(tgt))
                        RETURN(PTR_ERR(tgt));
  
 -              op_data->op_mds = tgt->ltd_idx;
 +              op_data->op_mds = tgt->ltd_index;
        } else {
                LASSERT(fid_is_sane(&op_data->op_fid1));
-               LASSERT(fid_is_zero(&op_data->op_fid2));
+               LASSERT(it->it_flags & MDS_OPEN_PCC ||
+                       fid_is_zero(&op_data->op_fid2));
                LASSERT(op_data->op_name != NULL);
  
 -              tgt = lmv_locate_tgt(lmv, op_data, &op_data->op_fid1);
 +              tgt = lmv_locate_tgt(lmv, op_data);
                if (IS_ERR(tgt))
                        RETURN(PTR_ERR(tgt));
        }
Simple merge
Simple merge
Simple merge