Skip to content

mm/slub: Fix debugfs stack trace sorting and simplify sort call

Kuan-Wei Chiu linux-mm lkml 2 versions – Applied

Status from this message: Applied to slab/for-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesApplied
  2. v12 patches 9 repliesSuperseded

Changes in v2 from the cover letter

* Use cmp_int().
* Drop Cc stable.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2mm/slub: Fix cmp_loc_by_count() to return 0 when counts are equalmm/slub.c+1 -41 reply
2/2mm/slub: Replace sort_r() with sort() for debugfs stack trace sortingmm/slub.c+3 -31 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJoshua HahnHarry Yoo
1/2R-b R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] mm/slub: Fix debugfs stack trace sorting and simplify sort call

Fix the comparison function used for sorting stack trace locations in the slub debugfs interface. The original implementation violated the antisymmetry property required by sort(), which could lead to unreliable ordering of the output. The patches correct the comparison function to return 0 when counts are equal and replace the unnecessary use of sort_r() with the simpler sort().
---
Changes in v2:
* Use cmp_int().
* Drop Cc stable.

v1: https://lore.kernel.org/lkml/[email protected]/

Kuan-Wei Chiu (2):
mm/slub: Fix cmp_loc_by_count() to return 0 when counts are equal mm/slub: Replace sort_r() with sort() for debugfs stack trace sorting

 mm/slub.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
Signature · 1 line
2.34.1