lkml.org 
[lkml]   [2010]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH] nfsd: make sure all sv_permsocks have lockd references
Date
This patchset should apply cleanly to the other patches that I've sent
recently. They fix some (theoretical) problems with the text-based write
ports and nfsd_init_socks interfaces.

The problem is that nfsd_last_thread expects that every socket on
sv_permsocks has a corresponding lockd reference, but there a couple of
ways to get sockets onto that list without getting a lockd reference.

This patch fixes all that I could spot. I suspect that this, along with
the other patches that I proposed earlier will fix the problem that
Chris Vine reported.

I've done some basic smoke testing with them and they seem to work
as expected.

I've also put the entire patch stack in my git tree on kernel.org:

http://git.kernel.org/?p=linux/kernel/git/jlayton/linux.git;a=summary

...in the nfsd-error branch. It may be more convenient to pull them
from there.

Jeff Layton (2):
nfsd: shut down transport in nfsd_init_socks if no lockd reference
nfsd: have __write_ports_add/delxprt get/put lockd references for
transports

fs/nfsd/nfsctl.c | 59 ++++++++++++++++++++++++++++++++++++++---------------
fs/nfsd/nfssvc.c | 21 +++++++++++++++---
2 files changed, 59 insertions(+), 21 deletions(-)



\
 
 \ /
  Last update: 2010-06-17 16:25    [W:0.046 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site