tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Problem with autounload of nfsserver module

In article <>,
Paul Goyette  <> wrote:
>I believe that the nfsserver module should not be allowed to autounload.
>Consider the following sequence of events:
>1. mountd is started, and calls nfssvc(2)
>2. The module subsystem autoloads the nfsserver module
>3. mountd continues, adding entries to the exports list
>So far, everything is fine.  However....
>4. When the autounload timer expires, the module subsystem unloads the
>    nfsserver module
>5. As part of nfsserver_modcmd(), the export list is cleared
>6. The autounload completes successfully
>7. At some later time, we finally get around to starting nfsd.  This
>    succeeds, but the export list has been cleared, so there is nothing
>    for nfsd to deliver to the clients.
>So, depending on how much time it takes between starting mountd and 
>starting nfsd, we could end up serving an empty exports list.
>The following patch prevents the module subsystem from unloading the 
>nfsserver module.  (Manual unloading of the module will still work.) 

Perhaps you want it to prevent it from unloading while there are exported


Home | Main Index | Thread Index | Old Index