mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Robust mutexes (-rt)
       [not found]     ` <1138909303.29087.51.camel@localhost.localdomain>
@ 2006-02-03  3:18       ` David Singleton
  2006-02-03  6:04         ` Thomas Gleixner
  0 siblings, 1 reply; 2+ messages in thread
From: David Singleton @ 2006-02-03  3:18 UTC (permalink / raw)
  To: tglx, mingo; +Cc: linux-kernel

Thomas,
     here is a patch that fixes the -EINTR problem and a fix for Dinakar's
simple futex deadlock test program.  When Esben's new deadlock detection
is ready I plan to use it for robust futex deadlock detection, both simple and
circular deadlock detection.


     http://source.mvista.com:~dsingleton/patch-2.6.15-rt16-rf1

 include/linux/futex.h |    3 +++
 kernel/futex.c          |    3 +++
 kernel/rt.c               |   19 ++++++++++++++++++-
 3 files changed, 24 insertions(+), 1 deletion(-)

David

> Just another problem:
>
> pthread_mutex_lock() of a robust mutex returns -EINTR, which is wrong by
> the specification. We encountered this in an application. Not sure what
> to do about that. It needs either a fix in glibc or the kernel could
> handle it via a restart function. That happens when a signal is
> delivered to the thread while the thread is blocked on the mutex.
>
>         tglx
>
>
>
>
>

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

* Re: Robust mutexes (-rt)
  2006-02-03  3:18       ` Robust mutexes (-rt) David Singleton
@ 2006-02-03  6:04         ` Thomas Gleixner
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2006-02-03  6:04 UTC (permalink / raw)
  To: David Singleton; +Cc: mingo, linux-kernel

On Thu, 2006-02-02 at 19:18 -0800, David Singleton wrote:
> Thomas,
>      here is a patch that fixes the -EINTR problem and a fix for Dinakar's
> simple futex deadlock test program.  When Esben's new deadlock detection
> is ready I plan to use it for robust futex deadlock detection, both simple and
> circular deadlock detection.
> 
> 
>      http://source.mvista.com:~dsingleton/patch-2.6.15-rt16-rf1
> 
>  include/linux/futex.h |    3 +++
>  kernel/futex.c          |    3 +++
>  kernel/rt.c               |   19 ++++++++++++++++++-
>  3 files changed, 24 insertions(+), 1 deletion(-)

The stats are nice. I'd prefer a patch associated with them :)

	tglx



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

end of thread, other threads:[~2006-02-03  6:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1138740179.5184.34.camel@localhost.localdomain>
     [not found] ` <b324b5ad0602011528g7ef81dc1ua0ecad2d73348d89@mail.gmail.com>
     [not found]   ` <1138863989.29087.24.camel@localhost.localdomain>
     [not found]     ` <1138909303.29087.51.camel@localhost.localdomain>
2006-02-03  3:18       ` Robust mutexes (-rt) David Singleton
2006-02-03  6:04         ` Thomas Gleixner

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

all inboxes | Powered by JetHome®