summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2018-03-02 02:31:25 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-06 15:20:23 +0300
commit165020462d26d6925cbd2d25dfbd4ff1a8fba103 (patch)
treed5b64c70824e91118eedf3ed48f6aea607dcaa0f /tools/perf/scripts/python/bin
parentc044fb0f835c6afe10d10b6cf4f2c5a154b1489d (diff)
downloadlinux-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/bin')
0 files changed, 0 insertions, 0 deletions