Module removal-related regression?

From: Jakub Kicinski
Date: Sat Sep 09 2017 - 13:41:33 EST


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...