Module removal-related regression?

Jakub Kicinski
2017-09-09T17:41:29Z

Hi!

I'm having trouble with modules on linux/master. rmmod succeeds but the
module is still loaded and the refcount goes to 1:

#rmmod nfp; insmod ./src/nfp.ko nfp_pf_netdev=0 ; \
/opt/netronome/bin/nfp-hwinfo -n 2 assembly.partno \
lsmod | grep nfp; \
rmmod nfp; \
lsmod | grep nfp
nfp 249856 0
nfp 200704 1

If I rmmod again the module will be actually unloaded. The user space
is mostly Ubuntu 14.04. Has anyone seen this? I'm trying to bisect
now...