From: John L. Hammond Date: Fri, 17 Jun 2016 14:16:08 +0000 (-0500) Subject: LU-8297 obd: release MGC device if connect fails X-Git-Tag: 2.8.56~36 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=fb5a79bf1e060a753a2e32e9a7b1f03fa4915ee2;ds=sidebyside LU-8297 obd: 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 Change-Id: I89697badac971e78e1cd3596e7ffc42afdcbfeee Reviewed-on: http://review.whamcloud.com/20851 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Mike Pershin Reviewed-by: Oleg Drokin --- diff --git a/lustre/obdclass/obd_mount.c b/lustre/obdclass/obd_mount.c index 3aa9d28..3908e1e 100644 --- a/lustre/obdclass/obd_mount.c +++ b/lustre/obdclass/obd_mount.c @@ -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) { - lustre_put_lsi(sb); + lustre_common_put_super(sb); GOTO(out, rc); } /* Connect and start */