Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
None
-
None
-
4773
Description
We need this functionality for async OSC RPC to support LU-884.
This is something like fake req, but it should be more well encapsulated. The interfaces would be like:
1. void *ptlrpc_allocate_work(struct obd_import *imp, int (*cb)(const struct lu_env *, void *), void *cbdata);
Initialize a callback data; handler will store a ptlrpc_request but caller shouldn't know this detail;
2. int ptlrpc_run_work(void *handler);
run the callback in ptlrpcd context if the request(handler) is NOT already in ptlrpcd list;
3. void ptlrpc_destroy_work(void *handler);
Attachments
Issue Links
- Trackbacks
-
Changelog 2.2 version 2.2.0 Support for networks: o2iblnd OFED 1.5.4 Server support for kernels: 2.6.32220.4.2.el6 (RHEL6) Client support for unpatched kernels: 2.6.18274.18.1.el5 (RHEL5) 2.6.32220.4.2.el6 (RHEL6) 2.6.32.360....