Re: [PATCH v5 03/32] mm/migrate: Trylock device page in do_swap_page

2025-02-20 Thread Matthew Brost
On Thu, Feb 20, 2025 at 03:28:23PM +0200, Gwan-gyeong Mun wrote: > > > On 2/13/25 4:10 AM, Matthew Brost wrote: > > Avoid multiple CPU page faults to the same device page racing by trying > > to lock the page in do_swap_page before taking an extra reference to the > > page. This prevents scenario

Re: [PATCH v5 03/32] mm/migrate: Trylock device page in do_swap_page

2025-02-20 Thread Gwan-gyeong Mun
On 2/13/25 4:10 AM, Matthew Brost wrote: Avoid multiple CPU page faults to the same device page racing by trying to lock the page in do_swap_page before taking an extra reference to the page. This prevents scenarios where multiple CPU page faults each take an extra reference to a device page,

Re: [PATCH v5 03/32] mm/migrate: Trylock device page in do_swap_page

2025-02-18 Thread Alistair Popple
On Tue, Feb 18, 2025 at 10:08:31PM -0800, Matthew Brost wrote: > On Wed, Feb 19, 2025 at 04:36:54PM +1100, Alistair Popple wrote: > > On Wed, Feb 12, 2025 at 06:10:43PM -0800, Matthew Brost wrote: > > > Avoid multiple CPU page faults to the same device page racing by trying > > > to lock the page i

Re: [PATCH v5 03/32] mm/migrate: Trylock device page in do_swap_page

2025-02-18 Thread Matthew Brost
On Wed, Feb 19, 2025 at 04:36:54PM +1100, Alistair Popple wrote: > On Wed, Feb 12, 2025 at 06:10:43PM -0800, Matthew Brost wrote: > > Avoid multiple CPU page faults to the same device page racing by trying > > to lock the page in do_swap_page before taking an extra reference to the > > page. This p

Re: [PATCH v5 03/32] mm/migrate: Trylock device page in do_swap_page

2025-02-18 Thread Alistair Popple
On Wed, Feb 12, 2025 at 06:10:43PM -0800, Matthew Brost wrote: > Avoid multiple CPU page faults to the same device page racing by trying > to lock the page in do_swap_page before taking an extra reference to the > page. This prevents scenarios where multiple CPU page faults each take > an extra ref

[PATCH v5 03/32] mm/migrate: Trylock device page in do_swap_page

2025-02-12 Thread Matthew Brost
Avoid multiple CPU page faults to the same device page racing by trying to lock the page in do_swap_page before taking an extra reference to the page. This prevents scenarios where multiple CPU page faults each take an extra reference to a device page, which could abort migration in folio_migrate_m