public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Hi, I have one question about rt_mutex.
@ 2007-05-10  7:34 Li Yu
  2007-05-10  8:19 ` Esben Nielsen
  0 siblings, 1 reply; 6+ messages in thread
From: Li Yu @ 2007-05-10  7:34 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: LKML

Hi, Steven.

Nice to meet you again.

I have read the rt-mutex-design.txt that you wrote. That is excellent
description of rt_mutex. But I have a question for rt_mutex.

As you said:


> Now since mutexes can be defined by user-land applications, we don't
want a DOS
> type of application that nests large amounts of mutexes to create a large
> PI chain, and have the code holding spin locks while looking at a large
> amount of data. So to prevent this, the implementation not only implements
> a maximum lock depth, but also only holds at most two different locks at a
> time, as it walks the PI chain. More about this below.

After read the implementation of rt_mutex_adjust_prio_chain(), I found
the we really require maximin lock depth (1024 default), but I can not
see the check for more same locks duplication. Does this doc is
inconsistent with code?

Thanks in advanced.

Good luck.
- Li Yu

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Hi, I have one question about rt_mutex.
@ 2007-05-10  7:42 Li Yu
  2007-05-10 13:00 ` Steven Rostedt
  0 siblings, 1 reply; 6+ messages in thread
From: Li Yu @ 2007-05-10  7:42 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: LKML

Hi, Steven.

Nice to meet you again.

I have read the rt-mutex-design.txt that you wrote. That is excellent
description of rt_mutex. But I have a question for rt_mutex.

As you said:


> Now since mutexes can be defined by user-land applications, we don't
want a DOS
> type of application that nests large amounts of mutexes to create a large
> PI chain, and have the code holding spin locks while looking at a large
> amount of data. So to prevent this, the implementation not only implements
> a maximum lock depth, but also only holds at most two different locks at a
> time, as it walks the PI chain. More about this below.

After read the implementation of rt_mutex_adjust_prio_chain(), I found
the we really require maximin lock depth (1024 default), but I can not
see the check for more same locks duplication. Does this doc is
inconsistent with code?

Thanks in advanced.

Good luck.
- Li Yu

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-05-11 12:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-10  7:34 Hi, I have one question about rt_mutex Li Yu
2007-05-10  8:19 ` Esben Nielsen
  -- strict thread matches above, loose matches on Subject: below --
2007-05-10  7:42 Li Yu
2007-05-10 13:00 ` Steven Rostedt
2007-05-11  1:56   ` Li Yu
2007-05-11 12:16     ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox