linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re-init lockd and kstatd in runtime.
@ 2012-01-26 11:15 Vlasov, Vladimir
  2012-01-26 11:40 ` NeilBrown
  0 siblings, 1 reply; 6+ messages in thread
From: Vlasov, Vladimir @ 2012-01-26 11:15 UTC (permalink / raw)
  To: linux-nfs@vger.kernel.org

Hi.

I'm wondering if there is any way to re-init lockd and kstatd after startup?

Look, in svc.c static variable nsm_use_kstatd is set to 1.
Then, if nsm_kernel_statd_init() returns error, nsm_use_kstatd is set to 0.
And we end up without kstatd.

Lockd will exit as soon as last NFS mount is unmounted and on next mount attempt lockd() in svc.c will be called again, but nsm_use_kstatd is 0 already and kstatd init will be skipped.

So, looks like if /var/lib/nfs/state is missed on host startup, there is no way to recover and tell kernel init kstatd later on demand. Or?

Best regards
Vladimir Vlasov

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

end of thread, other threads:[~2012-02-02  4:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-26 11:15 Re-init lockd and kstatd in runtime Vlasov, Vladimir
2012-01-26 11:40 ` NeilBrown
2012-01-26 12:14   ` Vlasov, Vladimir
2012-01-27  8:31   ` Vlasov, Vladimir
2012-02-02  4:50     ` Vlasov, Vladimir
2012-02-02  4:58       ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).