Whamcloud - gitweb
LU-8297 obd: release MGC device if connect fails 51/20851/3
authorJohn L. Hammond <john.hammond@intel.com>
Fri, 17 Jun 2016 14:16:08 +0000 (09:16 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 20 Jul 2016 17:43:14 +0000 (17:43 +0000)
In lustre_fill_super() if lustre_start_mgc() fails then call
lustre_common_put_super() to release a reference on the MGC device
attached to the LSI.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I89697badac971e78e1cd3596e7ffc42afdcbfeee
Reviewed-on: http://review.whamcloud.com/20851
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/obd_mount.c

index 3aa9d28..3908e1e 100644 (file)
@@ -1421,7 +1421,7 @@ static int lustre_fill_super(struct super_block *sb, void *data, int silent)
                } else {
                        rc = lustre_start_mgc(sb);
                        if (rc) {
                } else {
                        rc = lustre_start_mgc(sb);
                        if (rc) {
-                               lustre_put_lsi(sb);
+                               lustre_common_put_super(sb);
                                GOTO(out, rc);
                        }
                        /* Connect and start */
                                GOTO(out, rc);
                        }
                        /* Connect and start */