diff options
| author | James Simmons <[email protected]> | 2016-03-24 11:24:02 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-03-28 07:30:36 -0700 |
| commit | 7e221b6088eda47589480bcb29f4aaba44da49c7 (patch) | |
| tree | 771e42dbab212dc2c6ee04d9b996e88d3034e482 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 62d727c4a99a97e5cc73294d86ccf4b7250bfc3b (diff) | |
staging: lustre: lnet: revert commit 4671a0266
Commit 4671a0266 change the parameter of the second parameter of
cfs_precpt_alloc() from a sizeof type to sizeof type *pointer.
This was incorrect in this case and it caused a crash when the LNet
layer was brought up in my testing. The reason is cfs_precpt_alloc()
creates an array of items where the arrays size is equal to the
number of CPTs that exist. Changing to type *pointer only had
cfs_precpt_alloc() create an array of pointers instead of an array
of actual data structures. This patch reverse this change and adds
comments to explain what cfs_precpt_alloc() is actually doing to
avoid potential issues like this again.
Changelog:
v1) Simple revert of the original patch
v2) Added in comments to explain why cfs_precpt_alloc() has the
arguments it uses.
Signed-off-by: James Simmons <[email protected]>
Cc: Sandhya Bankar <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions