[OpenAFS-devel] Re: [OpenAFS] namei interface lockf buggy on Solaris (and probably HP-UX and AIX)

Jeffrey Hutzelman jhutz@cmu.edu
Mon, 11 Sep 2006 14:07:24 -0400


On Monday, September 11, 2006 12:45:40 PM -0400 Tom Keiser 
<tkeiser@gmail.com> wrote:

> As it turns out, the way we use file locks in the volume package is
> quite broken.  The spec says that once a process closes *any* file
> descriptor, all fcntl locks held for that file are immediately
> destroyed.  This means that the pthread fileserver/volserver can have
> some interesting races given how the ih package fd cache allows
> multiple concurrent descriptors per inode handle.  I have sample code
> sitting around somewhere which demonstrates this fault.

Do we ever acquire file locks on files other than the link table?
If so, why?