mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Fix gup_test long-term pin ownership
@ 2026-09-21  9:42 Richard Cheng
  2026-09-21  9:42 ` [RFC PATCH 1/2] mm/gup_test: Track long-term pins per open file Richard Cheng
  2026-09-21  9:42 ` [RFC PATCH 2/2] selftests/mm: Test per-open gup_test pin ownership Richard Cheng
  0 siblings, 2 replies; 5+ messages in thread
From: Richard Cheng @ 2026-09-21  9:42 UTC (permalink / raw)
  To: akpm, david
  Cc: jgg, jhubbard, peterx, linux-mm, linux-kernel, ljs, liam, vbabka,
	rppt, surenb, mhocko, shuah, linux-kselftest, kobak, kaihengf,
	newtonl, kristinc, Richard Cheng

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
-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-09-21 10:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-21  9:42 [RFC PATCH 0/2] Fix gup_test long-term pin ownership Richard Cheng
2026-09-21  9:42 ` [RFC PATCH 1/2] mm/gup_test: Track long-term pins per open file Richard Cheng
2026-09-21 10:26   ` David Hildenbrand (Arm)
2026-09-21  9:42 ` [RFC PATCH 2/2] selftests/mm: Test per-open gup_test pin ownership Richard Cheng
2026-09-21 10:28   ` David Hildenbrand (Arm)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®