help-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Syncfs & node locking


From: Ludovic Courtès
Subject: Re: Syncfs & node locking
Date: Wed, 4 Dec 2002 16:24:17 +0100
User-agent: Mutt/1.4i

On Tue, Nov 19, 2002 at 06:16:54PM +0100, Marcus Brinkmann wrote:
> > The problem is that, as specified by the comments in netfs.h for
> > netfs_attempt_lookup (), on successful lookups, the node found must
> > be locked.  Therefore, if the server's syncfs stub tries to acquire a
> > lock on the node that has just been looked up by syncfs(1), it will
> > just hang.
> 
> Have you actually tried this?  The node is unlocked before returning the
> port to the user (via nput/nrele).

The actual problem actually is that netfs_S_file_syncfs () locks the
node passed by the user before calling netfs_attempt_syncfs () (is it
really useful?).  Therefore, my program was hanging when trying to acquire
this node's lock.

Thanks,
Ludovic.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]