aboutsummaryrefslogtreecommitdiff
path: root/net/ipx
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-04-24 23:11:22 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-26 13:07:00 +0200
commit701970b3a83cc639c1ec8fc6f40a7871cb99426f (patch)
treec17cee9da25eaecee7a7e615eaa932becec663a4 /net/ipx
parent060fa5c83e67901ba47ab484cfcdb32737d630ba (diff)
tracing/events: make modules have their own file_operations structure
For proper module reference counting, the file_operations that modules use must have the "owner" field set to the module. Unfortunately, the trace events use share file_operations. The same file_operations are used by all both kernel core and all modules. This patch makes the modules allocate their own file_operations and copies the functions from the core kernel. This allows those file operations to be owned by the module. Care is taken to free this code on module unload. Thanks to Greg KH for reminding me that file_operations must be owned by the module to have reference counting take place. [ Impact: fix modular tracepoints / potential crash ] Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net/ipx')
0 files changed, 0 insertions, 0 deletions