From c89af048391c23366e0ea31cb6b9e69ad086c0f5 Mon Sep 17 00:00:00 2001 From: Jeremy Filizetti Date: Thu, 31 May 2012 10:30:00 -0400 Subject: [PATCH] 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 --- lustre/ptlrpc/client.c | 1 - 1 file changed, 1 deletion(-) 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; -- 1.8.3.1