Date: Wed, 26 Mar 2003 11:21:34 -0800 (PST) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/nfsclient nfs_lock.c Message-ID: <200303261921.h2QJLYhs039438@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2003/03/26 11:21:34 PST FreeBSD src repository Modified files: sys/nfsclient nfs_lock.c Log: Add O_NONBLOCK to the vn_open_cred() flags for NFS client locking when opening the POSIX fifo; convert ENXIO error returns to EOPNOTSUPP. This improves handling of the case where the /var/run/lock fifo exists but there is no listener: we immediately return EOPNOTSUPP rather than blocking until a listener turns up. This could occur during a diskless boot before rpc.lockd is loaded, or if the lock file persists across a reboot following the disabling of rpc.lockd. This may have suddenly started to occur due to fifo blocking fixes--previously it looks like attempts to read on a fifo with no listener would time out due to insufficient resources. Reviewed by: alfred Revision Changes Path 1.33 +13 -3 src/sys/nfsclient/nfs_lock.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303261921.h2QJLYhs039438>