This is missing from MDT implementation which will cause the client
to wait for reply forever.
Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I9e46d83f8db6b6ded57a284914a2ede88dd987f4
Reviewed-on: http://review.whamcloud.com/6864
Tested-by: Hudson
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
if (likely(h != NULL)) {
rc = mdt_req_handle(info, h, req);
} else {
if (likely(h != NULL)) {
rc = mdt_req_handle(info, h, req);
} else {
- CERROR("The unsupported opc: 0x%x\n",
- lustre_msg_get_opc(msg) );
+ CERROR("%s: opc unsupported: 0x%x\n",
+ mdt_obd_name(info->mti_mdt),
+ lustre_msg_get_opc(msg));
req->rq_status = -ENOTSUPP;
rc = ptlrpc_error(req);
RETURN(rc);
}
}
req->rq_status = -ENOTSUPP;
rc = ptlrpc_error(req);
RETURN(rc);
}
}
- } else
- CERROR(LUSTRE_MDT_NAME" drops mal-formed request\n");
- RETURN(rc);
+ } else {
+ CDEBUG(D_INFO, "%s: drops mal-formed request: rc = %d\n",
+ mdt_obd_name(info->mti_mdt), rc);
+ req->rq_status = rc;
+ rc = ptlrpc_error(req);
+ }
+ RETURN(rc);