cvs commit: src/sys/nfsclient nfs_lock.c

Robert Watson rwatson at
Wed Mar 26 23:23:22 PST 2003

On Wed, 26 Mar 2003, Kris Kennaway wrote:

> Thanks, this sounds like it may fix non-blocking calls to open() on a
> NFS file, which would previously block. 

Well, it depends whether the open() had flags like O_SHLOCK or O_EXLOCK
set.  This will only affect cases where advisory locking primitives were
used by userspace applications, resulting in a call into the NFS locking
code.  Interestingly, this case would previously timeout with:

  foo: Resource temporarily unavailable

on -CURRENT, but not -STABLE, due to a deadlock work-around in the fifo
code.  Only when the work-around was removed did this case pop up--before
the diskless boot would pause occasionally waiting for fifos to time out,
but then continue. 

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert at      Network Associates Laboratories

More information about the cvs-src mailing list