This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix deadlock in close()


On Jan 29, 2008 9:37 PM, Andrew Lunn <andrew@lunn.ch> wrote:
> On Thu, Jan 24, 2008 at 12:33:14PM +0100, ?yvind Harboe wrote:
> > Allow filing system to access files during close(). Without
> > this fix, any file access causes a deadlock during
> > close().
>
> It might stop a deadlock, but it opens up a race condition. Imaging a
> close() and a dup() at the same time.

From what you write above, I draw the conclusion that you
think, like me, that file system access during close() should
be allowed.

Correct?

If we can agree on what correct behavior is, then I can get to
work on making a fix that passes muster.



-- 
Øyvind Harboe
http://www.zylin.com - eCos ARM & FPGA  developer kit


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]