Whamcloud - gitweb
LU-1459 llite: Don't LBUG when import has LUSTRE_IMP_NEW state
authorJeremy Filizetti <jeremy.filizetti@gmail.com>
Thu, 31 May 2012 14:30:00 +0000 (10:30 -0400)
committerJohann Lombardi <johann@whamcloud.com>
Tue, 12 Jun 2012 20:11:36 +0000 (16:11 -0400)
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 <jeremy.filizetti@gmail.com>
Change-Id: Ib689eb37c20d1012728abb7c35aee15f30604d54
Reviewed-on: http://review.whamcloud.com/2993
Tested-by: Hudson
Reviewed-by: Bobi Jam <bobijam@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/ptlrpc/client.c

index 9386396..8ecbc5b 100644 (file)
@@ -836,7 +836,6 @@ static int ptlrpc_import_delay_req(struct obd_import *imp,
         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;