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

Tom Keiser tkeiser@gmail.com
Mon, 11 Sep 2006 15:06:31 -0400

On 9/11/06, Jeffrey Hutzelman <jhutz@cmu.edu> wrote:
> 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?

Namei link counts are the only usage I'm aware of (aside from the
salvager and partition lockfiles, obviously).