All of lore.kernel.org
 help / color / mirror / Atom feed
* 8 patches cleaning up nfsd initialization
@ 2007-11-15 21:56 J. Bruce Fields
  2007-11-15 21:56 ` [PATCH] knfsd: cleanup nfsd4 properly on module init failure J. Bruce Fields
  2007-11-16  0:41 ` 8 patches cleaning up nfsd initialization Neil Brown
  0 siblings, 2 replies; 21+ messages in thread
From: J. Bruce Fields @ 2007-11-15 21:56 UTC (permalink / raw)
  To: Neil Brown; +Cc: linux-nfs, nfs

While working on something unrelated I noticed nfsd tends to ignore a
lot of memory allocation failures on initialization.  I don't think
we'eve seen a bug report here--such failures are probably nearly
nonexistant.  But still it seems a minor bug in most cases not to catch
such failures.

My guess is that one of the motivations for the current behavior, in the
case of failures to create /proc entries, was to continue to allow nfsd
to function in kernels with no proc support whatsoever.

However in kernels that do have proc support failure to create such
entries should be treated as fatal.  So, I add some #ifdef's to handle
this case explicitly.

I also add "select PROC_FS" when nfsv4 or gss are selected, since those
newer features don't function at all without proc.

Look reasonable?

--b.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

end of thread, other threads:[~2007-11-16 16:27 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-15 21:56 8 patches cleaning up nfsd initialization J. Bruce Fields
2007-11-15 21:56 ` [PATCH] knfsd: cleanup nfsd4 properly on module init failure J. Bruce Fields
2007-11-15 21:56   ` [PATCH] nfsd: cleanup nfsd module initialization cleanup J. Bruce Fields
2007-11-15 21:56     ` [PATCH] nfsd: fail module init on reply cache init failure J. Bruce Fields
2007-11-15 21:56       ` [PATCH] knfsd: cache unregistration needn't return error J. Bruce Fields
2007-11-15 21:57         ` [PATCH] nfsd: select CONFIG_PROC_FS in nfsv4 and gss server cases J. Bruce Fields
2007-11-15 21:57           ` [PATCH] nfsd: fail init on /proc/fs/nfs/exports creation failure J. Bruce Fields
2007-11-15 21:57             ` [PATCH] nfsd: move cache proc (un)registration to separate function J. Bruce Fields
2007-11-15 21:57               ` [PATCH] knfsd: allow cache_register to return error on failure J. Bruce Fields
2007-11-15 22:06           ` [PATCH] nfsd: select CONFIG_PROC_FS in nfsv4 and gss server cases Trond Myklebust
2007-11-15 22:20             ` J. Bruce Fields
2007-11-15 22:25               ` Trond Myklebust
2007-11-15 22:26                 ` J. Bruce Fields
2007-11-16 14:29       ` [PATCH] nfsd: fail module init on reply cache init failure Peter Staubach
2007-11-16 15:30         ` J. Bruce Fields
2007-11-16 15:38           ` Peter Staubach
2007-11-16 16:01             ` J. Bruce Fields
2007-11-16 16:22               ` Peter Staubach
2007-11-16 16:27                 ` J. Bruce Fields
2007-11-16  0:41 ` 8 patches cleaning up nfsd initialization Neil Brown
2007-11-16  3:19   ` J. Bruce Fields

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.