public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: fcntl and flock wakeups not FIFO?
@ 2003-02-18  1:00 Matthew Wilcox
  2003-02-18  4:51 ` Chris Friesen
  2003-02-18 14:44 ` Chris Friesen
  0 siblings, 2 replies; 6+ messages in thread
From: Matthew Wilcox @ 2003-02-18  1:00 UTC (permalink / raw)
  To: Chris Friesen; +Cc: linux-kernel, linux-fsdevel


[cc'ing the person or list mentioned in MAINTAINERS would get you a better
response :-P]

> I've been doing some experimenting with locking on 2.4.18 and have
> noticed that if I have a number of writers waiting on a lock, they are
> not woken up in the order in which they requested the lock.
> 
> Is this expected? If so, what was the reasoning for this and are there
> any patches to give FIFO wakeups?

That certainly isn't what's supposed to happen.  They should get woken
up in-order.  The code in 2.4.18 seems to be doing that.  Are you doing
anything clever with scheduling?

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk

^ permalink raw reply	[flat|nested] 6+ messages in thread
* fcntl and flock wakeups not FIFO?
@ 2003-02-17 19:11 Chris Friesen
  0 siblings, 0 replies; 6+ messages in thread
From: Chris Friesen @ 2003-02-17 19:11 UTC (permalink / raw)
  To: linux-kernel


I've been doing some experimenting with locking on 2.4.18 and have 
noticed that if I have a number of writers waiting on a lock, they are 
not woken up in the order in which they requested the lock.

Is this expected?  If so, what was the reasoning for this and are there 
any patches to give FIFO wakeups?

Thanks,

Chris

-- 
Chris Friesen                    | MailStop: 043/33/F10
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: cfriesen@nortelnetworks.com



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

end of thread, other threads:[~2003-02-18 18:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-18  1:00 fcntl and flock wakeups not FIFO? Matthew Wilcox
2003-02-18  4:51 ` Chris Friesen
2003-02-18 14:44 ` Chris Friesen
2003-02-18 15:02   ` Matthew Wilcox
2003-02-18 19:00     ` Chris Friesen
  -- strict thread matches above, loose matches on Subject: below --
2003-02-17 19:11 Chris Friesen

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