linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC] pin_user_pages_fast failure count increased
@ 2025-04-28 15:17 Jaewon Kim
  2025-04-28 15:21 ` David Hildenbrand
  2025-04-28 20:14 ` John Hubbard
  0 siblings, 2 replies; 6+ messages in thread
From: Jaewon Kim @ 2025-04-28 15:17 UTC (permalink / raw)
  To: zhaoyang.huang, jhubbard, david; +Cc: surenb, linux-mm

Hi

If pin_user_pages_fast does not pin all the requested number of pages,
then drivers calling to pin_user_pages_fast should retry until the gup
pins all?

Our GPU driver uses pin_user_pages_fast.
After the recent kernel update, pin_user_pages_fast sometimes does not
pin all the pages, nr_pinned < nr_pages.

I think the following patch affected the pin_user_pages_fast behavior.
1aaf8c122918 mm: gup: fix infinite loop within __get_longterm_locked

BR
Jaewon Kim


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

end of thread, other threads:[~2025-05-22  9:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-28 15:17 [RFC] pin_user_pages_fast failure count increased Jaewon Kim
2025-04-28 15:21 ` David Hildenbrand
2025-04-28 20:14 ` John Hubbard
2025-04-28 20:56   ` David Hildenbrand
2025-04-28 21:12     ` John Hubbard
     [not found]       ` <CGME20250522092944epcas2p1ca46168564555aad6d9880bda26ec8de@epcas2p1.samsung.com>
2025-05-22  9:27         ` Hyesoo Yu

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