X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flinux%2Flustre_net.h;h=02f5e17c9c82eff896f8dcb6743092ed6111dc99;hb=cc4b70974d3fb462a1d58fc6c789c9e226188841;hp=ae09030f3a3cdcc18ff5207dc7e9570fcbec15f8;hpb=f6e2f83978f715293b3f78fd91971027eb033b36;p=fs%2Flustre-release.git diff --git a/lustre/include/linux/lustre_net.h b/lustre/include/linux/lustre_net.h index ae09030..02f5e17 100644 --- a/lustre/include/linux/lustre_net.h +++ b/lustre/include/linux/lustre_net.h @@ -36,11 +36,11 @@ #define CONNMGR_REQUEST_PORTAL 1 #define CONNMGR_REPLY_PORTAL 2 -#define OSC_REQUEST_PORTAL 3 +//#define OSC_REQUEST_PORTAL 3 #define OSC_REPLY_PORTAL 4 #define OSC_BULK_PORTAL 5 #define OST_REQUEST_PORTAL 6 -#define OST_REPLY_PORTAL 7 +//#define OST_REPLY_PORTAL 7 #define OST_BULK_PORTAL 8 #define MDC_REQUEST_PORTAL 9 #define MDC_REPLY_PORTAL 10 @@ -54,7 +54,7 @@ #define LDLM_CLI_REPLY_PORTAL 18 /* default rpc ring length */ -#define RPC_RING_LENGTH 2 +#define RPC_RING_LENGTH 10 #define SVC_KILLED 1 #define SVC_EVENT 2 @@ -103,6 +103,7 @@ struct ptlrpc_client { __u32 cli_reply_portal; __u64 cli_last_rcvd; __u64 cli_last_committed; + __u32 cli_target_devno; void *cli_data; struct semaphore cli_rpc_sem; /* limits outstanding requests */ @@ -140,6 +141,7 @@ struct ptlrpc_client { struct ptlrpc_request { int rq_type; /* one of PTL_RPC_REQUEST, PTL_RPC_REPLY, PTL_RPC_BULK */ struct list_head rq_list; + struct list_head rq_multi; struct obd_device *rq_obd; int rq_status; int rq_flags; @@ -204,7 +206,7 @@ struct ptlrpc_bulk_desc { wait_queue_head_t b_waitq; struct list_head b_page_list; __u32 b_page_count; - atomic_t b_finished_count; + atomic_t b_pages_remaining; void *b_desc_private; }; @@ -303,7 +305,7 @@ ptlrpc_init_svc(__u32 bufsize, int req_portal, int rep_portal, char *uuid, void ptlrpc_stop_all_threads(struct ptlrpc_service *svc); int ptlrpc_start_thread(struct obd_device *dev, struct ptlrpc_service *svc, char *name); -int rpc_unregister_service(struct ptlrpc_service *service); +int ptlrpc_unregister_service(struct ptlrpc_service *service); struct ptlrpc_svc_data { char *name;