This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: Fix deadlock in close()
- From: "Øyvind Harboe" <oyvind dot harboe at zylin dot com>
- To: "Andrew Lunn" <andrew at lunn dot ch>
- Cc: "eCos Disuss" <ecos-patches at ecos dot sourceware dot org>
- Date: Sun, 3 Feb 2008 14:35:20 +0100
- Subject: Re: Fix deadlock in close()
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=HZaDkx2vMgHKu9zekSl+4/44JYdHiuk+FNMI5zvMa9I=; b=sGozWxq6uzWPZVAfH1x7ilPkUdkB03UyJYvWQvpUlpCqxDqCdDJeKOBeYKRwcuwOxmz4SLCkvFhQqiVDdXw9a/czPjc6gyqaP0RHTQLR3GycVlTTq+FWAtPC/ZwKm5HPb/PucEvio6/GsvsXFyjv6+bA8s3ztrVsjU+jzmxsI2E=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=MZBB3sjHezuGLJcXKCwphlguUZXWKw6ruRsIAEvpB/dz3YU3yGuF7WCJcT7CDAHjyUa3IqxQ/Vf/nYQO6NHiEXg1HSsGZv3jTvRresW17hkg0StaTurUYyjKhA0eZc5TiPYy+MJOsWHmbsvHUky3wBGnm1HMY0aJOr03pHV8nwM=
- References: <c09652430801240333l49caa3c9g7aaa935b08ec5adf@mail.gmail.com> <20080129203710.GB31597@lunn.ch>
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