瀏覽代碼

staging: lustre: Fix an error handling path in 'client_common_fill_super()'

According to error handling path before and after this one, we should go
to 'out_md_fid' here, instead of 'out_md', if 'obd_connect()' fails.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Christophe JAILLET 7 年之前
父節點
當前提交
3368b7f65a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/staging/lustre/lustre/llite/llite_lib.c

+ 2 - 2
drivers/staging/lustre/lustre/llite/llite_lib.c

@@ -400,11 +400,11 @@ static int client_common_fill_super(struct super_block *sb, char *md, char *dt)
 		LCONSOLE_ERROR_MSG(0x150,
 		LCONSOLE_ERROR_MSG(0x150,
 				   "An OST (dt %s) is performing recovery, of which this client is not a part.  Please wait for recovery to complete, abort, or time out.\n",
 				   "An OST (dt %s) is performing recovery, of which this client is not a part.  Please wait for recovery to complete, abort, or time out.\n",
 				   dt);
 				   dt);
-		goto out_md;
+		goto out_md_fid;
 	} else if (err) {
 	} else if (err) {
 		CERROR("%s: Cannot connect to %s: rc = %d\n",
 		CERROR("%s: Cannot connect to %s: rc = %d\n",
 		       sbi->ll_dt_exp->exp_obd->obd_name, dt, err);
 		       sbi->ll_dt_exp->exp_obd->obd_name, dt, err);
-		goto out_md;
+		goto out_md_fid;
 	}
 	}
 
 
 	sbi->ll_dt_exp->exp_connect_data = *data;
 	sbi->ll_dt_exp->exp_connect_data = *data;