Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 88076e46 authored by Ian Rogers's avatar Ian Rogers Committed by Namhyung Kim
Browse files

perf comm str: Avoid sort during insert

The array is sorted, so just move the elements and insert in order.

Fixes: 13ca6287

 ("perf comm: Add reference count checking to 'struct comm_str'")
Reported-by: default avatarMatt Fleming <matt@readmodwrite.com>
Signed-off-by: default avatarIan Rogers <irogers@google.com>
Tested-by: default avatarMatt Fleming <matt@readmodwrite.com>
Cc: Steinar Gunderson <sesse@google.com>
Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Link: https://lore.kernel.org/r/20240703172117.810918-2-irogers@google.com


Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
parent 83a7eefe
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment