mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* modular nfsd requires kernel changes on sh, sparc64, x86_64
@ 2004-03-13 17:34 Adrian Bunk
  2004-03-13 18:05 ` Andi Kleen
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2004-03-13 17:34 UTC (permalink / raw)
  To: neilb
  Cc: linux-kernel, nfs, davem, sparclinux, ak, discuss, gniibe,
	kkojima, linux-sh

Compiling and inserting a module into the currently running kernel 
should work without needing a reboot.

For nfsd this seems to work everywhere except on the sh, sparc64 
and x86_64 architectures where adding the nfsd module changes 
non-modular kernel code (checked in 2.6.4-mm1):


arch/sh/kernel/entry.S:

<--  snip  -->

...
#if !defined(CONFIG_NFSD) && !defined(CONFIG_NFSD_MODULE)
#define sys_nfsservctl          sys_ni_syscall
#endif
...

<--  snip  -->


arch/x86_64/ia32/sys_ia32.c:

<--  snip  -->

...
#if defined(CONFIG_NFSD) || defined(CONFIG_NFSD_MODULE)
/* Stuff for NFS server syscalls... */
struct nfsctl_svc32 {
        u16                     svc32_port;
        s32                     svc32_nthreads;
};

struct nfsctl_client32 {
...

<--  snip  -->


arch/sparc64/kernel/sys_sparc32.c:

<--   snip  -->

...
#if defined(CONFIG_NFSD) || defined(CONFIG_NFSD_MODULE)
/* Stuff for NFS server syscalls... */
struct nfsctl_svc32 {
        u16                     svc32_port;
        s32                     svc32_nthreads;
};

struct nfsctl_client32 {
...

<--  snip  -->





cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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

* Re: modular nfsd requires kernel changes on sh, sparc64, x86_64
  2004-03-13 17:34 modular nfsd requires kernel changes on sh, sparc64, x86_64 Adrian Bunk
@ 2004-03-13 18:05 ` Andi Kleen
  0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2004-03-13 18:05 UTC (permalink / raw)
  To: Adrian Bunk
  Cc: neilb, linux-kernel, nfs, davem, sparclinux, ak, discuss, gniibe,
	kkojima, linux-sh

On Sat, Mar 13, 2004 at 06:34:44PM +0100, Adrian Bunk wrote:
> Compiling and inserting a module into the currently running kernel 
> should work without needing a reboot.
> 
> For nfsd this seems to work everywhere except on the sh, sparc64 
> and x86_64 architectures where adding the nfsd module changes 
> non-modular kernel code (checked in 2.6.4-mm1):

Ideally if you want to do that I would suggest you move the nfsd
emulation layer into nfsd itself (compat_nfsservctl) and let
it be called using a stub like the normal modular sys_nfsservctl

-Andi

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

end of thread, other threads:[~2004-03-13 18:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-13 17:34 modular nfsd requires kernel changes on sh, sparc64, x86_64 Adrian Bunk
2004-03-13 18:05 ` Andi Kleen

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

all inboxes | Powered by JetHome®