diff options
author | Petr Mladek <pmladek@suse.com> | 2016-10-19 14:07:20 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-12-14 12:16:11 -0500 |
commit | f5eabf5e5129e8ab5b3e7f50b24444aca1680e64 (patch) | |
tree | d4e67e68a300111713fb5a12132bd060733b8687 /Documentation | |
parent | 6efaf10f163d9a60d1d4b2a049b194a53537ba1b (diff) |
IB/rdmavt: Handle the kthread worker using the new API
Use the new API to create and destroy the cq kthread worker.
The API hides some implementation details.
In particular, kthread_create_worker() allocates and initializes
struct kthread_worker. It runs the kthread the right way and stores
task_struct into the worker structure. In addition, the *on_cpu()
variant binds the kthread to the given cpu and the related memory
node.
kthread_destroy_worker() flushes all pending works, stops
the kthread and frees the structure.
This patch does not change the existing behavior. Note that we must
use the on_cpu() variant because the function starts the kthread
and it must bind it to the right CPU before waking. The numa node
is associated for given CPU as well.
Signed-off-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions