diff options
| author | NeilBrown <neilb@suse.com> | 2018-03-02 02:31:25 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-06 15:20:23 +0300 |
| commit | 165020462d26d6925cbd2d25dfbd4ff1a8fba103 (patch) | |
| tree | d5b64c70824e91118eedf3ed48f6aea607dcaa0f /tools/perf/scripts/python | |
| parent | c044fb0f835c6afe10d10b6cf4f2c5a154b1489d (diff) | |
| download | linux-165020462d26d6925cbd2d25dfbd4ff1a8fba103.tar.xz | |
staging: lustre: change sai_thread to sai_task.
Rather than allocating a ptlrpc_thread for the
stat-ahead thread, just use the task_struct provided
by kthreads directly.
As nothing ever waits for the sai_task, it must call do_exit()
directly rather than simply return from the function.
Also it cannot use kthread_should_stop() to know when to stop.
There is one caller which can ask it to stop so we need a simple
signaling mechanism. I've chosen to set ->sai_task to NULL
when the thread should finish up. The thread notices this and
cleans up and exits.
lli_sa_lock is used to avoid races between waking up the process
and the process exiting.
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
