Whamcloud - gitweb
Include headers explicitly that were previously included from lustre_net.h.
[fs/lustre-release.git] / lustre / ptlrpc / niobuf.c
index bfbd55a..26eb727 100644 (file)
 
 #define DEBUG_SUBSYSTEM S_RPC
 
+#include <linux/obd_support.h>
 #include <linux/lustre_net.h>
 
 extern ptl_handle_eq_t request_out_eq, reply_in_eq, reply_out_eq,
         bulk_source_eq, bulk_sink_eq;
-static ptl_process_id_t local_id = {PTL_ID_ANY, PTL_ID_ANY};
+static ptl_process_id_t local_id = {PTL_NID_ANY, PTL_PID_ANY};
 
 int ptlrpc_check_bulk_sent(struct ptlrpc_bulk_desc *bulk)
 {
@@ -216,8 +217,8 @@ int ptlrpc_reply(struct ptlrpc_service *svc, struct ptlrpc_request *req)
 {
         /* FIXME: we need to increment the count of handled events */
         req->rq_type = PTL_RPC_TYPE_REPLY;
-        req->rq_repmsg->conn = req->rq_connection->c_remote_conn;
-        req->rq_repmsg->token = req->rq_connection->c_remote_token;
+        //req->rq_repmsg->conn = req->rq_connection->c_remote_conn;
+        //req->rq_repmsg->token = req->rq_connection->c_remote_token;
         req->rq_repmsg->status = HTON__u32(req->rq_status);
         req->rq_reqmsg->type = HTON__u32(req->rq_type);
         return ptl_send_buf(req, req->rq_connection, svc->srv_rep_portal);