Linux NFS development
 help / color / mirror / Atom feed
* [PATCH 0/5] Convert knfsd to kthread API and fix startup/shutdown races (try #4)
@ 2008-06-10 12:40 Jeff Layton
  2008-06-10 12:40 ` [PATCH 1/5] knfsd: Replace lock_kernel with a mutex for nfsd thread startup/shutdown locking Jeff Layton
  0 siblings, 1 reply; 27+ messages in thread
From: Jeff Layton @ 2008-06-10 12:40 UTC (permalink / raw)
  To: bfields; +Cc: linux-nfs, nfsv4, neilb, gnb-cP1dWloDopni96+mSzHFpQC/G2K4zDHf

This patchset is the fourth attempt to change nfsd to the kthread API.
The main changes from the last patchset deal with module reference
counts. Earlier patchsets either had ignored the module reference count
for nfsd, or had attempted to do the module refcounting in the nfsd
module itself.

Ignoring them won't work. nfsd is started from userspace, so we need to
have the nfsd threads keep an explicit reference to the module. Also, we
need to have the function that actually starts each thread take the
reference. Trying to do it within the context of the thread itself would
be racy.

I think this should fix the last of the issues identified, but comments
and suggestions are welcome.

Signed-off-by: Jeff Layton <jlayton@redhat.com>


^ permalink raw reply	[flat|nested] 27+ messages in thread
* [PATCH 0/5] Convert knfsd to kthread API and fix startup/shutdown races (try #3)
@ 2008-06-06 15:12 Jeff Layton
  2008-06-06 15:12 ` [PATCH 1/5] knfsd: Replace lock_kernel with a mutex for nfsd thread startup/shutdown locking Jeff Layton
  0 siblings, 1 reply; 27+ messages in thread
From: Jeff Layton @ 2008-06-06 15:12 UTC (permalink / raw)
  To: bfields; +Cc: linux-nfs, nfsv4, gnb

This patchset is the third attempt to change nfsd to the kthread
API. Most of the changes here were suggested by Greg Banks. The main
changes from the second patchset are:

- add more stringent locking around some of the /proc/fs/nfsd
  interfaces. Particularly those that set parameters that are only
  consulted when nfsd is starting.

- I've also changed more of these interfaces to return -EBUSY when
  someone attempts to set them while nfsd is up.

- fixed /proc/fs/nfsd/nfsv4recoverydir to return the recoverydir
  pathname when read. It previously always returned -EINVAL.

- removed the sv_kill_signal parameter from svc_serv struct, and
  changed svc_set_pool_threads to send SIGINT to bring down a thread.

As always, comments and suggestions are appreciated...

Signed-off-by: Jeff Layton <jlayton@redhat.com>

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2008-06-13 18:04 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-10 12:40 [PATCH 0/5] Convert knfsd to kthread API and fix startup/shutdown races (try #4) Jeff Layton
2008-06-10 12:40 ` [PATCH 1/5] knfsd: Replace lock_kernel with a mutex for nfsd thread startup/shutdown locking Jeff Layton
2008-06-10 12:40   ` [PATCH 2/5] knfsd: clean up nfsd filesystem interfaces Jeff Layton
2008-06-10 12:40     ` [PATCH 3/5] knfsd: remove special handling for SIGHUP Jeff Layton
2008-06-10 12:40       ` [PATCH 4/5] knfsd: convert knfsd to kthread API Jeff Layton
2008-06-10 12:40         ` [PATCH 5/5] sunrpc: remove sv_kill_signal field from svc_serv struct Jeff Layton
2008-06-10 16:24         ` [PATCH 4/5] knfsd: convert knfsd to kthread API J. Bruce Fields
2008-06-10 16:25           ` J. Bruce Fields
2008-06-10 17:06             ` Jeff Layton
2008-06-10 20:05               ` J. Bruce Fields
2008-06-10 20:19                 ` Jeff Layton
2008-06-12  3:38   ` [PATCH 1/5] knfsd: Replace lock_kernel with a mutex for nfsd thread startup/shutdown locking Neil Brown
2008-06-12 12:37     ` Jeff Layton
2008-06-13  6:12       ` Neil Brown
2008-06-13 18:04       ` J. Bruce Fields
  -- strict thread matches above, loose matches on Subject: below --
2008-06-06 15:12 [PATCH 0/5] Convert knfsd to kthread API and fix startup/shutdown races (try #3) Jeff Layton
2008-06-06 15:12 ` [PATCH 1/5] knfsd: Replace lock_kernel with a mutex for nfsd thread startup/shutdown locking Jeff Layton
2008-06-06 15:12   ` [PATCH 2/5] knfsd: clean up nfsd filesystem interfaces Jeff Layton
2008-06-06 15:12     ` [PATCH 3/5] knfsd: remove special handling for SIGHUP Jeff Layton
2008-06-06 15:12       ` [PATCH 4/5] knfsd: convert knfsd to kthread API Jeff Layton
2008-06-06 17:24         ` J. Bruce Fields
2008-06-06 18:11           ` Jeff Layton
2008-06-06 18:16             ` J. Bruce Fields
2008-06-06 19:05               ` Jeff Layton
     [not found]                 ` <20080606150537.14c9537c-RtJpwOs3+0O+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2008-06-06 19:13                   ` J. Bruce Fields
2008-06-06 19:49             ` Jeff Layton
     [not found]               ` <20080606154948.303aba28-RtJpwOs3+0O+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2008-06-09 13:08                 ` J. Bruce Fields
2008-06-09 13:19                   ` Jeff Layton
     [not found]                     ` <20080609091948.0b2b19a9-RtJpwOs3+0O+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2008-06-09 18:39                       ` J. Bruce Fields
2008-06-09 18:54                         ` Jeff Layton
     [not found]                           ` <20080609145459.1adda51a-RtJpwOs3+0O+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2008-06-10 10:50                             ` Greg Banks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox