git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] knfsd: be more selective in which sockets lockd listens on
[safe/jmp/linux-2.6]
/
fs
/
nfs
/
client.c
diff --git
a/fs/nfs/client.c
b/fs/nfs/client.c
index
ec1938d
..
8106f3b
100644
(file)
--- a/
fs/nfs/client.c
+++ b/
fs/nfs/client.c
@@
-460,7
+460,8
@@
static int nfs_start_lockd(struct nfs_server *server)
goto out;
if (server->flags & NFS_MOUNT_NONLM)
goto out;
- error = lockd_up();
+ error = lockd_up((server->flags & NFS_MOUNT_TCP) ?
+ IPPROTO_TCP : IPPROTO_UDP);
if (error < 0)
server->flags |= NFS_MOUNT_NONLM;
else