aboutsummaryrefslogtreecommitdiff
path: root/sys/nfsclient/nfs_lock.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2006-01-13 23:16:29 +0000
committerRobert Watson <rwatson@FreeBSD.org>2006-01-13 23:16:29 +0000
commit63074a901acb32e8774aba177eae7694211c3d03 (patch)
tree55cf33f962829e10cccbe7071f775aceea2217f4 /sys/nfsclient/nfs_lock.c
parentcc61a0b12da4a139e18a09fd4c6da41ede5929bc (diff)
downloadsrc-63074a901acb32e8774aba177eae7694211c3d03.tar.gz
src-63074a901acb32e8774aba177eae7694211c3d03.zip
In nfs_dolock(), GC now under-used ioflg, rendered obsolete when we moved
from using a fifo to talk to rpc.lockd to using a special device node. Noticed by: Coverity Prevent analysis tool MFC after: 3 days
Notes
Notes: svn path=/head/; revision=154316
Diffstat (limited to 'sys/nfsclient/nfs_lock.c')
-rw-r--r--sys/nfsclient/nfs_lock.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/nfsclient/nfs_lock.c b/sys/nfsclient/nfs_lock.c
index 3a72df1578dd..88f3f1e16345 100644
--- a/sys/nfsclient/nfs_lock.c
+++ b/sys/nfsclient/nfs_lock.c
@@ -230,7 +230,6 @@ nfs_dolock(struct vop_advlock_args *ap)
struct vnode *vp;
int error;
struct flock *fl;
- int ioflg;
struct proc *p;
td = curthread;
@@ -310,10 +309,8 @@ nfs_dolock(struct vop_advlock_args *ap)
if (error == EWOULDBLOCK) {
/*
* We timed out, so we rewrite the request
- * to the fifo, but only if it isn't already
- * full.
+ * to the fifo.
*/
- ioflg |= IO_NDELAY;
continue;
}