aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorAmir Shehata <[email protected]>2016-02-22 17:29:18 -0500
committerGreg Kroah-Hartman <[email protected]>2016-02-22 18:05:49 -0800
commit341bc96085f4dfbc2427d746753faf9edf789f90 (patch)
treef6292ba8717405a9be8971c2794d4d8e2084fede /tools/perf/scripts/python/netdev-times.py
parent94bfb3cff238514d4049f719bfe99116f51d1c8c (diff)
staging: lustre: prevent assert on LNet module unload
There is a use case where lnet can be unloaded while there are no NIs configured. Removing lnet in this case will cause LNetFini() to be called without a prior call to LNetNIFini(). This will cause the LASSERT(the_lnet.ln_refcount == 0) to be triggered. To deal with this use case when LNet is configured a reference count on the module is taken using try_module_get(). This way LNet must be unconfigured before it could be removed; therefore avoiding the above case. When LNet is unconfigured module_put() is called to return the reference count. Signed-off-by: Amir Shehata <[email protected]> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6010 Reviewed-on: http://review.whamcloud.com/13110 Reviewed-by: James Simmons <[email protected]> Reviewed-by: Doug Oucharek <[email protected]> Reviewed-by: Oleg Drokin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions