From 3be61e84ec71576c95b010899a485c2824295e96 Mon Sep 17 00:00:00 2001 From: shadow <shadow> Date: Tue, 25 Nov 2008 07:54:03 +0000 Subject: [PATCH] revert on chunk from patch, due startup race. Branch b1_6 b=16492 --- lustre/liblustre/super.c | 2 ++ lustre/llite/llite_lib.c | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/lustre/liblustre/super.c b/lustre/liblustre/super.c index 5165d4937f..f28190cc7d 100644 --- a/lustre/liblustre/super.c +++ b/lustre/liblustre/super.c @@ -2010,6 +2010,8 @@ llu_fsswop_mount(const char *source, GOTO(out_osc, err); } + mdc_init_ea_size(sbi->ll_mdc_exp, sbi->ll_osc_exp); + err = mdc_getstatus(sbi->ll_mdc_exp, &rootfid); if (err) { CERROR("cannot mds_connect: rc = %d\n", err); diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index dedb02f409..fcc78fc0b3 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -356,6 +356,12 @@ static int client_common_fill_super(struct super_block *sb, GOTO(out_page_rm_cb, err); } + err = mdc_init_ea_size(sbi->ll_mdc_exp, sbi->ll_osc_exp); + if (err) { + CERROR("cannot set max EA and cookie sizes: rc = %d\n", err); + GOTO(out_lock_cn_cb, err); + } + err = obd_prep_async_page(sbi->ll_osc_exp, NULL, NULL, NULL, 0, NULL, NULL, NULL, 0, NULL); if (err < 0) { -- GitLab