Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-962

Add a feature to run a callback in ptlrpcd context

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.2.0
    • 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

          Activity

            People

              jay Jinshan Xiong (Inactive)
              jay Jinshan Xiong (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: