diff options
author | Paul Moore <[email protected]> | 2018-03-06 17:27:44 -0500 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-03-07 15:12:58 -0500 |
commit | b51f26b14683838825170387457176c1ffaea9f5 (patch) | |
tree | bf2eda1c6a1704c23e357249dc55b98777ad8d7c /tools/perf/scripts/python/stackcollapse.py | |
parent | e05836ac07c77dd90377f8c8140bce2a44af5fe7 (diff) |
net: don't unnecessarily load kernel modules in dev_ioctl()
Starting with v4.16-rc1 we've been seeing a higher than usual number
of requests for the kernel to load networking modules, even on events
which shouldn't trigger a module load (e.g. ioctl(TCGETS)). Stephen
Smalley suggested the problem may lie in commit 44c02a2c3dc5
("dev_ioctl(): move copyin/copyout to callers") which moves changes
the network dev_ioctl() function to always call dev_load(),
regardless of the requested ioctl.
This patch moves the dev_load() calls back into the individual ioctls
while preserving the rest of the original patch.
Reported-by: Dominick Grift <[email protected]>
Suggested-by: Stephen Smalley <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions