Re: flock incorrectly detects deadlock on 7-stable and current

2008-05-09 Thread Doug Rabson
On 9 May 2008, at 07:07, Paul Koch wrote: On Thu, 8 May 2008 06:37:00 pm Doug Rabson wrote: Could you possibly try this patch and tell me if it helps: ... Manually applied the patch to stable kern_lockf.c 1.57.2.1. Ran the flock_test program on many of our architectures and it works fine

Re: flock incorrectly detects deadlock on 7-stable and current

2008-05-08 Thread Paul Koch
On Thu, 8 May 2008 06:37:00 pm Doug Rabson wrote: > On 8 May 2008, at 09:12, Paul Koch wrote: > > Hi, > > > > We have been trying to track down a problem with one of our apps > > which does a lot of flock(2) calls. flock returns errno 11 > > (Resource deadlock avoided) under certain scenarios. Ou

Re: flock incorrectly detects deadlock on 7-stable and current

2008-05-08 Thread Doug Rabson
On 8 May 2008, at 09:12, Paul Koch wrote: Hi, We have been trying to track down a problem with one of our apps which does a lot of flock(2) calls. flock returns errno 11 (Resource deadlock avoided) under certain scenarios. Our app works fine on 7-Release, but fails on 7-stable and -current.