Skip to content

RFC Fix gup_test long-term pin ownership

Richard Cheng linux-kselftest linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm/gup_test: Track long-term pins per open filemm/gup_test.c+57 -311 reply
2/2selftests/mm: Test per-open gup_test pin ownershiptools/testing/selftests/mm/gup_longterm.c+256 -21 reply

Reviews trailers per patch

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

PatchKoba Ko
1/2R-b
2/2R-b

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

Read the v1 thread

Cover letter [RFC PATCH 0/2] Fix gup_test long-term pin ownership

gup_test currently stores long-term pin state globally, allowing one open file descriptor to block or release pins owned by another client. Move this state to each open file description so independent clients have isolated pin lifecycles.

Patch 1 moves long-term pin state from global variables to per-open file state, preventing independent clients from affecting each other.

Patch 2 adds selftest coverage for concurrent pins and verifies that stopping or closing one descriptor does not release another descriptor's pin.

Richard Cheng (2):
mm/gup_test: Track long-term pins per open file selftests/mm: Test per-open gup_test pin ownership

 mm/gup_test.c                             |  88 +++++---
 tools/testing/selftests/mm/gup_longterm.c | 258 +++++++++++++++++++++-
 2 files changed, 313 insertions(+), 33 deletions(-)

base-commit: 66498c75b4f8017f62d720d9b59675bdf3abce91

Signature · 1 line
2.43.0