Whamcloud - gitweb
Land from b_hd_pid to HEAD
authorzhaoqiang <zhaoqiang>
Thu, 26 Aug 2004 07:34:53 +0000 (07:34 +0000)
committerzhaoqiang <zhaoqiang>
Thu, 26 Aug 2004 07:34:53 +0000 (07:34 +0000)
commit289e9caabec18e07df40f206b1000d91d9e305d7
tree53d6a0974ad507532ae4c7f4ed01030bf8c4eb5d
parentf2899ecc0af2e21aa3431ce9110d9bf5f41651b4
Land from b_hd_pid to HEAD
b=bug4165(pid)
r=Peter

- Assign the constant number to kernel portals pid,
  this constant is LUSTRE_SRV_PTL_PID(999999) defined
  in lustre_idl.h;
  In the user mode(liblustre), use the getpid()

- Modify the struct ptlrpc_peer's field peer_nid
  from ptl_nid_t to ptl_process_id_t, which include pid.
  Modify the related code with peer_nid.

- Change the snprintf remote_uuid.uuid to
  include pid info in target_handle_connect;

- In ksocknal_api_startup, use LUSTRE_SRV_PTL_PID to PtlNIInit.

- In tcpnal_init, b->lib_nal->libnal_ni.ni_pid.pid=0;
  This line should be deleted.

- In ptlrpc_get_connection, add the pid compare
  when iterate the conn_list & conn_unused_list

- Change request_in_callback while assign req->rq_peer.peer_id

- In ptlrpc_uuid_to_peer, give default value
  (LUSTRE_SRV_PTL_PID) to peer->peer_id.pid

- Change each entry to call PtlNIInit/PtlPut

- Change the entry to call PtlMEAttach,
  use c_peer value replace PTL_PID_ANY , it is the most important!
35 files changed:
lnet/include/linux/kp30.h
lnet/klnds/gmlnd/gmlnd_api.c
lnet/klnds/iblnd/ibnal.c
lnet/klnds/qswlnd/qswlnd.c
lnet/klnds/scimaclnd/scimacnal.c
lnet/klnds/socklnd/socklnd.c
lnet/klnds/socklnd/socklnd.h
lnet/libcfs/debug.c
lnet/lnet/lib-move.c
lnet/lnet/module.c
lnet/ulnds/socklnd/tcplnd.c
lnet/ulnds/tcplnd.c
lustre/include/linux/lustre_idl.h
lustre/include/linux/lustre_net.h
lustre/ldlm/ldlm_lib.c
lustre/ldlm/ldlm_lockd.c
lustre/liblustre/llite_lib.c
lustre/liblustre/tests/echo_test.c
lustre/obdfilter/filter.c
lustre/osc/osc_request.c
lustre/ost/ost_handler.c
lustre/portals/include/linux/kp30.h
lustre/portals/knals/gmnal/gmnal_api.c
lustre/portals/knals/ibnal/ibnal.c
lustre/portals/knals/qswnal/qswnal.c
lustre/portals/knals/scimacnal/scimacnal.c
lustre/portals/knals/socknal/socknal.c
lustre/portals/knals/socknal/socknal.h
lustre/portals/libcfs/debug.c
lustre/portals/portals/lib-move.c
lustre/portals/portals/module.c
lustre/portals/unals/tcpnal.c
lustre/ptlrpc/connection.c
lustre/ptlrpc/events.c
lustre/ptlrpc/niobuf.c