[lkml]   [2009]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH -v5][RFC]: mutex: implement adaptive spinning

* Gregory Haskins <> wrote:

> Can I ask a simple question in light of all this discussion?
> "Is get_task_struct() really that bad?"

it dirties a cacheline and it also involves atomics.

Also, it's a small design cleanliness issue to me: get_task_struct()
impacts the lifetime of an object - and if a locking primitive has
side-effects on object lifetimes that's never nice.


 \ /
  Last update: 2009-01-07 23:39    [W:0.220 / U:0.612 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site