login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
March
»
9
Re: [rfc][patch] futex: restartable futex_wait?
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Nick Piggin <npiggin@...>
To: Ingo Molnar <mingo@...>
Cc: Linux Kernel Mailing List <linux-kernel@...>, Thomas Gleixner <tglx@...>
Subject:
Re: [rfc][patch] futex: restartable futex_wait?
Date: Friday, March 9, 2007 - 1:10 am
On Thu, Mar 08, 2007 at 06:29:02PM +0100, Ingo Molnar wrote:
quoted text
> > * Nick Piggin <npiggin@suse.de> wrote: > > > Hi Ingo, > > > > I'm seeing an LTP test fail for ltp test sigaction_16_24. Basically, > > it tests whether the SA_RESTART flag works for the sem_wait operation. > > > > I see sem_wait is implemented with futex_wait, so I wonder whether we > > can make it restartable? Am I going about it the right way? (Seems to > > fix the testcase here). > > i think that's quite right. I'm wondering why this never came up before? > But your fix is not complete i think: > > > + restart->arg2 = time; > > + return -ERESTART_RESTARTBLOCK; > > + } > > 'time' here is relative, so the restarted syscall will do a /full/ wait > again.
But it has been modified by schedule_timeout? -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[rfc][patch] futex: restartable futex_wait?
, Nick Piggin
, (Wed Mar 7, 11:33 am)
Re: [rfc][patch] futex: restartable futex_wait?
, Ingo Molnar
, (Thu Mar 8, 1:29 pm)
Re: [rfc][patch] futex: restartable futex_wait?
, Nick Piggin
, (Fri Mar 9, 1:10 am)
Re: [rfc][patch] futex: restartable futex_wait?
, Thomas Gleixner
, (Fri Mar 9, 5:38 am)
Re: [rfc][patch] futex: restartable futex_wait?
, Nick Piggin
, (Fri Mar 9, 8:24 am)
Re: [rfc][patch] futex: restartable futex_wait?
, Thomas Gleixner
, (Fri Mar 9, 9:10 am)
Re: [rfc][patch] futex: restartable futex_wait?
, Thomas Gleixner
, (Thu Mar 8, 7:02 pm)
Re: [rfc][patch] futex: restartable futex_wait?
, Nick Piggin
, (Fri Mar 9, 1:15 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Davide Libenzi
[patch 7/8] fdmap v2 - implement sys_socket2
Benjamin Herrenschmidt
Re: [PATCH] Remove process freezer from suspend to RAM pathway
Greg Kroah-Hartman
[PATCH 011/196] sysfs: Fix a copy-n-paste typo in comment
Greg KH
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
linux-netdev
:
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
Rémi Denis-Courmont
[PATCH] USB host CDC Phonet network interface driver
David Miller
[GIT]: Networking
git
:
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
687 guests
online.
Online users
strcmp
Jeremy
Syndicate