Whamcloud - gitweb
revert on chunk from patch, due startup race.
authorshadow <shadow>
Tue, 25 Nov 2008 07:54:03 +0000 (07:54 +0000)
committershadow <shadow>
Tue, 25 Nov 2008 07:54:03 +0000 (07:54 +0000)
Branch b1_6
b=16492

lustre/liblustre/super.c
lustre/llite/llite_lib.c

index 5165d49..f28190c 100644 (file)
@@ -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);
index dedb02f..fcc78fc 100644 (file)
@@ -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) {