]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Bug fix for module unloading.
authorKris Van Hees <kris.van.hees@oracle.com>
Wed, 7 Aug 2013 07:44:08 +0000 (03:44 -0400)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 7 Aug 2013 17:08:38 +0000 (18:08 +0100)
commit6eb4dafce4698d8c9f3e0cde317d85ed583c4efa
tree014fb62ca391441948fba51998552aec59de6e75
parent471a3549a96b3792db9f3bf038100ab8306efb4c
Bug fix for module unloading.

Once a consumer has opened the /dev/dtrace/dtrace device file, providers can
no longer be safely unloaded, until the last consumer closed the device file.
This commit adds code to ensure this behaviour.  Failing to do so results in
almost certain OOPSes because Linux does not support kernel modules "refusing"
to be unloaded in response to an rmmod.

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
dtrace/dtrace-module.spec
dtrace/dtrace_debug.h
dtrace/dtrace_dev.c
dtrace/dtrace_ptofapi.c
dtrace/include/dtrace/provider.h