aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2022-02-24 18:55:46 +0100
committerMartin K. Petersen <[email protected]>2022-03-01 22:21:49 -0500
commit71bada345b33b9297e7cc9415db6328c99b554f9 (patch)
tree6865d4b16f1081f9f265d8186677ab4a2a3dea8a /tools/perf/scripts/python/stackcollapse.py
parentc49ff72cff4caff709b2edb98421bd87bec1d853 (diff)
scsi: core: Don't memset() the entire scsi_cmnd in scsi_init_command()
Replace the big fat memset that requires saving and restoring various fields with just initializing those fields that need initialization. All the clearing to 0 is moved to scsi_prepare_cmd() as scsi_ioctl_reset() alreadly uses kzalloc() to allocate a pre-zeroed command. This is still conservative and can probably be optimized further. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Bart Van Assche <[email protected]> Reviewed-by: John Garry <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions