1. 02 10月, 2006 3 次提交
    • N
      [PATCH] knfsd: remove nfsd_versbits as intermediate storage for desired versions · 6658d3a7
      NeilBrown 提交于
      We have an array 'nfsd_version' which lists the available versions of nfsd,
      and 'nfsd_versions' (poor choice there :-() which lists the currently active
      versions.
      
      Then we have a bitmap - nfsd_versbits which says which versions are wanted.
      The bits in this bitset cause content to be copied from nfsd_version to
      nfsd_versions when nfsd starts.
      
      This patch removes nfsd_versbits and moves information directly from
      nfsd_version to nfsd_versions when requests for version changes arrive.
      
      Note that this doesn't make it possible to change versions while the server is
      running.  This is because serv->sv_xdrsize is calculated when a service is
      created, and used when threads are created, and xdrsize depends on the active
      versions.
      Signed-off-by: NNeil Brown <neilb@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      6658d3a7
    • N
      [PATCH] knfsd: be more selective in which sockets lockd listens on · 24e36663
      NeilBrown 提交于
      Currently lockd listens on UDP always, and TCP if CONFIG_NFSD_TCP is set.
      
      However as lockd performs services of the client as well, this is a problem.
      If CONFIG_NfSD_TCP is not set, and a tcp mount is used, the server will not be
      able to call back to lockd.
      
      So:
       - add an option to lockd_up saying which protocol is needed
       - Always open sockets for which an explicit port was given, otherwise
         only open a socket of the type required
       - Change nfsd to do one lockd_up per socket rather than one per thread.
      
      This
       - removes the dependancy on CONFIG_NFSD_TCP
       - means that lockd may open sockets other than at startup
       - means that lockd will *not* listen on UDP if the only
         mounts are TCP mount (and nfsd hasn't started).
      
      The latter is the only one that concerns me at all - I don't know if this
      might be a problem with some servers.
      Signed-off-by: NNeil Brown <neilb@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      24e36663
    • N
      [PATCH] knfsd: add a callback for when last rpc thread finishes · bc591ccf
      NeilBrown 提交于
      nfsd has some cleanup that it wants to do when the last thread exits, and
      there will shortly be some more.  So collect this all into one place and
      define a callback for an rpc service to call when the service is about to be
      destroyed.
      
      [akpm@osdl.org: cleanups, build fix]
      Signed-off-by: NNeil Brown <neilb@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      bc591ccf
  2. 01 7月, 2006 1 次提交
  3. 24 3月, 2006 1 次提交
  4. 02 2月, 2006 1 次提交
  5. 07 11月, 2005 2 次提交
  6. 18 8月, 2005 1 次提交
    • S
      [PATCH] nfsd to unlock kernel before exiting · c4f92dba
      Steven Rostedt 提交于
      The nfsd holds the big kernel lock upon exit, when it really shouldn't.
      Not to mention that this breaks Ingo's RT patch. This is a trivial fix
      to release the lock.
      
      Ingo, this patch also works with your kernel, and stops the problem with
      nfsd.
      
      Note, there's a "goto out;" where "out:" is right above svc_exit_thread.
      The point of the goto also holds the kernel_lock, so I don't see any
      problem here in releasing it.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      c4f92dba
  7. 24 6月, 2005 1 次提交
  8. 23 6月, 2005 2 次提交
  9. 17 4月, 2005 2 次提交