lkml.org 
[lkml]   [2013]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] kthread: implement probe_kthread_data()
On Fri 29-03-13 20:00:45, Tejun Heo wrote:
> Implement probe_kthread_data() which returns kthread_data if
> accessible. The function is equivalent to kthread_data() except that
> the specified @task may not be a kthread or its vfork_done is already
> cleared rendering struct kthread inaccessible. In the former case,
> probe_kthread_data() may return any value. In the latter, NULL.
>
> This will be used to safely print debug information without affecting
> synchronization in the normal paths. Workqueue debug info printing on
> dump_stack() and friends will make use of it.
Thanks for looking into this. Just one typo correction below:

> @@ -122,6 +123,24 @@ void *kthread_data(struct task_struct *task)
> return to_kthread(task)->data;
> }
>
> +/**
> + * probe_kthread_data - speculatively version of kthread_data()
^^^^ speculative

Honza
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR


\
 
 \ /
  Last update: 2013-04-03 12:41    [W:0.089 / U:0.820 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site