Skip to contentSkip to conversation

kernel 2.6: NFS problem---cannot rmmod nfsd

DISCUSSION Xin Zhao 1 participant 2 messages Jul 5, 2005

lore
Share & tools
lore

Xin Zhao

author
#0 lore raw

I compile kernel 2.6.11.10 and configure both nfs client and server as kernel modules. But after I reboot the machine and did "/etc/init.d/nfs start", the nfsd module is inserted. But when I tried to rmmod this module either with "/etc/init.d/nfs stop" or "umount /proc/fs/nfsd; rmmod nfsd", the nfsd reference count is always 1 and cannot be removed. Why?

Thanks in advance for your kind help!

-x

author
#1 lore raw

Please discard the previous message.

I just noticed that something was wrong in the nfsd implementation (slightly modified by me). After I fixed the problem, I can rmmod nfsd now.

Sorry for the confusion.

-x

Quoted 11 lines · Xin Zhao

I compile kernel 2.6.11.10 and configure both nfs client and server as kernel modules. But after I reboot the machine and did "/etc/init.d/nfs start", the nfsd module is inserted. But when I tried to rmmod this module either with "/etc/init.d/nfs stop" or "umount /proc/fs/nfsd; rmmod nfsd", the nfsd reference count is always 1 and cannot be removed. Why?

Thanks in advance for your kind help!

-x