X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Flustre_net.h;h=67ec415c46942a8b9fe8d616324b56cf44d4f65a;hp=c065b86cfa5dff5a217046d83f959640482e5c0d;hb=2064c2a7e616b172f72462884b23d899bfc040ff;hpb=2c90cdfc2de97cbe93d34c93e646a3dd9b230a75 diff --git a/lustre/include/lustre_net.h b/lustre/include/lustre_net.h index c065b86..67ec415 100644 --- a/lustre/include/lustre_net.h +++ b/lustre/include/lustre_net.h @@ -1527,6 +1527,12 @@ __u64 ptlrpc_next_xid(void); __u64 ptlrpc_sample_next_xid(void); __u64 ptlrpc_req_xid(struct ptlrpc_request *request); +/* Set of routines to run a function in ptlrpcd context */ +void *ptlrpcd_alloc_work(struct obd_import *imp, + int (*cb)(const struct lu_env *, void *), void *data); +void ptlrpcd_destroy_work(void *handler); +int ptlrpcd_queue_work(void *handler); + /** @} */ struct ptlrpc_service_conf {