#include <obd_support.h>
#include <lustre_fid.h>
#include <lustre_fld.h>
-#include <lustre_mdt.h> /* err_serious() */
+#include <md_object.h>
#include <lustre_req_layout.h>
#include <lprocfs_status.h>
#include "fld_internal.h"
fld->lsf_name, seq, -EIO);
RETURN(-EIO);
} else {
- LASSERT(fld->lsf_control_exp);
+ if (fld->lsf_control_exp == NULL) {
+ CERROR("%s: lookup "LPX64", but not connects to MDT0"
+ "yet: rc = %d.\n", fld->lsf_name, seq, -EIO);
+ RETURN(-EIO);
+ }
/* send request to mdt0 i.e. super seq. controller.
* This is temporary solution, long term solution is fld
* replication on all mdt servers.