aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lustre/obdclass/obd_mount.c
diff options
context:
space:
mode:
authorJohn L. Hammond <john.hammond@intel.com>2016-08-24 11:11:57 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-01 17:25:46 +0200
commit7f93fce9660158ea0b690af225dcc22b31a845ac (patch)
treef3bd11b92a3203758ec23e77c078f5cfc7c6e638 /drivers/staging/lustre/lustre/obdclass/obd_mount.c
parentstaging/lustre/llite: changes to avoid cache corruption (diff)
downloadlinux-dev-7f93fce9660158ea0b690af225dcc22b31a845ac.tar.xz
linux-dev-7f93fce9660158ea0b690af225dcc22b31a845ac.zip
staging/lustre: release MGC device if connect fails
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> Reviewed-on: http://review.whamcloud.com/20851 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8297 Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Reviewed-by: Mike Pershin <mike.pershin@intel.com> Signed-off-by: Oleg Drokin <green@linuxhacker.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lustre/obdclass/obd_mount.c')
-rw-r--r--drivers/staging/lustre/lustre/obdclass/obd_mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/obdclass/obd_mount.c b/drivers/staging/lustre/lustre/obdclass/obd_mount.c
index ae702ce579da..0273768fdda8 100644
--- a/drivers/staging/lustre/lustre/obdclass/obd_mount.c
+++ b/drivers/staging/lustre/lustre/obdclass/obd_mount.c
@@ -1144,7 +1144,7 @@ static int lustre_fill_super(struct super_block *sb, void *data, int silent)
} else {
rc = lustre_start_mgc(sb);
if (rc) {
- lustre_put_lsi(sb);
+ lustre_common_put_super(sb);
goto out;
}
/* Connect and start */