]> err.no Git - linux-2.6/commit
[PATCH] knfsd: Check return value of lockd_up in write_ports
authorNeilBrown <neilb@suse.de>
Mon, 2 Oct 2006 09:17:51 +0000 (02:17 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 2 Oct 2006 14:57:18 +0000 (07:57 -0700)
commit3dfb4210535303bb4c2e0ff1c4fdd4dfe9b93472
treec4f9b8f7755dc44060af914ffc720fc196ef30c6
parent6fb2b47fa16c81317ec282248e6cff521cca31c2
[PATCH] knfsd: Check return value of lockd_up in write_ports

We should be checking the return value of lockd_up when adding a new socket to
nfsd.  So move the lockd_up before the svc_addsock and check the return value.

The move is because lockd_down is easy, but there is no easy way to remove a
recently added socket.

Cc: "J. Bruce Fields" <bfields@fieldses.org>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfsd/nfsctl.c