Re: [RFC,PATCH] RCUify single-thread case of clock_gettime()
From: Ingo Molnar
Date: Mon Oct 31 2005 - 16:44:37 EST
* Paul E. McKenney <paulmck@xxxxxxxxxx> wrote:
> Hello!
>
> The attached patch uses RCU to avoid the need to acquire tasklist_lock
> in the single-thread case of clock_gettime(). Still acquires
> tasklist_lock when asking for the time of a (potentially
> multithreaded) process.
>
> Experimental, has been touch-tested on x86 and POWER. Requires RCU on
> task_struct. Further more focused testing in progress.
>
> Thoughts? (Why? Some off-list users want to be able to monitor CPU
> consumption of specific threads. They need to do so quite frequently,
> so acquiring tasklist_lock is inappropriate.)
looks good to me - i have added this to the -rt tree, it should show up
in 2.6.14-rt3.
Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/