From: Jeremy Filizetti Date: Thu, 31 May 2012 14:30:00 +0000 (-0400) Subject: LU-1459 llite: Don't LBUG when import has LUSTRE_IMP_NEW state X-Git-Tag: 2.2.58~19 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=c89af048391c23366e0ea31cb6b9e69ad086c0f5;p=fs%2Flustre-release.git LU-1459 llite: Don't LBUG when import has LUSTRE_IMP_NEW state When a disabled OSC/OST is configured in the system at mount time, a client will LBUG if calling "lfs check servers". Disabling the LBUG causes client to return -EIO instead. Signed-off-by: Jeremy Filizetti Signed-off-by: Bobi Jam Change-Id: I1844b66e56259da28129df2c60d2542e9c95aeee Reviewed-on: http://review.whamcloud.com/2998 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Fan Yong Reviewed-by: Andreas Dilger --- diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index 140b342..3ad9a87 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -1086,7 +1086,6 @@ static int ptlrpc_import_delay_req(struct obd_import *imp, } else if (imp->imp_state == LUSTRE_IMP_NEW) { DEBUG_REQ(D_ERROR, req, "Uninitialized import."); *status = -EIO; - LBUG(); } else if (imp->imp_state == LUSTRE_IMP_CLOSED) { DEBUG_REQ(D_ERROR, req, "IMP_CLOSED "); *status = -EIO;