]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
For reasons unknown, the nfs locking code used a fifo to send requests to
authorphk <phk@FreeBSD.org>
Mon, 6 Dec 2004 08:31:32 +0000 (08:31 +0000)
committerphk <phk@FreeBSD.org>
Mon, 6 Dec 2004 08:31:32 +0000 (08:31 +0000)
commit753d615ec01e09d4509ce777a880341ea6feb39d
tree93ace8ca23553123c0dfd5066b9419aea9adb71e
parentb62f254b426d1e3871d394d61c4ae1997fca0a70
For reasons unknown, the nfs locking code used a fifo to send requests to
userland and a dedicated system call to get replies.

The vnode-bypass of fifos broke this into a panic.

Ditch all the magic and create a device /dev/nfslock instead, and
use that for both directions apart from the shorter path, this is
also faster because the device driver runs Giant free using the
vnode bypass.

Noticed by: marcel
sys/nfsclient/nfs.h
sys/nfsclient/nfs_lock.c
sys/nfsclient/nfs_lock.h
sys/nfsclient/nfs_nfsiod.c
sys/nfsclient/nfs_subs.c