Re: timing out on a semaphore

2001-02-27 Thread Davide Libenzi
On 27-Feb-2001 Tim Waugh wrote: > On Tue, Feb 27, 2001 at 10:40:35PM +, Andrew Morton wrote: > >> 1: Your code is leaving the semaphore in a down'ed state >>somehow. > > This was probably it. I don't know why it works for me but not some > other people though. :-/ UP vs. MP ? - Dav

Re: timing out on a semaphore

2001-02-27 Thread Tim Waugh
On Tue, Feb 27, 2001 at 10:40:35PM +, Andrew Morton wrote: > 1: Your code is leaving the semaphore in a down'ed state >somehow. This was probably it. I don't know why it works for me but not some other people though. :-/ > (As you can tell, I'm desparately avoiding having > to understa

Re: timing out on a semaphore

2001-02-27 Thread Andrew Morton
Tim Waugh wrote: > > On Sun, Feb 25, 2001 at 11:10:39PM +, Andrew Morton wrote: > > > I think there might be a bogon in __down_interruptible's > > handling of the semaphore state in this case. I remember > > spotting something a few months back but I can't immediately > > remember what it w

Re: timing out on a semaphore

2001-02-27 Thread Tim Waugh
On Sun, Feb 25, 2001 at 11:10:39PM +, Andrew Morton wrote: > I think there might be a bogon in __down_interruptible's > handling of the semaphore state in this case. I remember > spotting something a few months back but I can't immediately > remember what it was :( > > I'd suggest you slot

Re: timing out on a semaphore

2001-02-26 Thread Arjan van de Ven
In article <[EMAIL PROTECTED]> you wrote: > --2F7AbV2suvT8PGoH > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > I'm trying to chase down a semaphore time-out problem. I want to > sleep on a semaphore until either > (a) it's signalled, or > (b) some amount of time ha

Re: timing out on a semaphore

2001-02-25 Thread Andrew Morton
Tim Waugh wrote: > > I'm trying to chase down a semaphore time-out problem. I want to > sleep on a semaphore until either > > (a) it's signalled, or > (b) some amount of time has elapsed. > > What I'm doing is calling add_timer, and then down_interruptible, and > finally del_timer. The timer'

RE: timing out on a semaphore

2001-02-25 Thread Davide Libenzi
On 25-Feb-2001 Tim Waugh wrote: > I'm trying to chase down a semaphore time-out problem. I want to > sleep on a semaphore until either > > (a) it's signalled, or > (b) some amount of time has elapsed. > > What I'm doing is calling add_timer, and then down_interruptible, and > finally del_timer

timing out on a semaphore

2001-02-25 Thread Tim Waugh
I'm trying to chase down a semaphore time-out problem. I want to sleep on a semaphore until either (a) it's signalled, or (b) some amount of time has elapsed. What I'm doing is calling add_timer, and then down_interruptible, and finally del_timer. The timer's function ups the semaphore. The c