Re: [PATCH v2 03/29] mm/migrate: Trylock device page in do_swap_page

2024-12-13 Thread Matthew Brost
On Fri, Dec 13, 2024 at 02:16:51PM -0800, Matthew Brost wrote: > On Fri, Nov 29, 2024 at 10:31:32AM +1100, Alistair Popple wrote: > > > > Matthew Brost writes: > > > > > Avoid multiple CPU page faults to the same device page racing by trying > > > to lock the page in do_swap_page before taking a

Re: [PATCH v2 03/29] mm/migrate: Trylock device page in do_swap_page

2024-12-13 Thread Matthew Brost
On Fri, Nov 29, 2024 at 10:31:32AM +1100, Alistair Popple wrote: > > Matthew Brost writes: > > > 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 C

Re: [PATCH v2 03/29] mm/migrate: Trylock device page in do_swap_page

2024-11-28 Thread Alistair Popple
Matthew Brost writes: > 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

Re: [PATCH v2 03/29] mm/migrate: Trylock device page in do_swap_page

2024-11-01 Thread Matthew Brost
On Tue, Oct 29, 2024 at 05:37:45PM +1100, Alistair Popple wrote: > > Matthew Brost writes: > > > On Thu, Oct 17, 2024 at 12:51:08PM +1100, Alistair Popple wrote: > >> > >> Matthew Brost writes: > >> > >> > On Wed, Oct 16, 2024 at 03:00:08PM +1100, Alistair Popple wrote: > >> >> > >> >> Matth

Re: [PATCH v2 03/29] mm/migrate: Trylock device page in do_swap_page

2024-10-28 Thread Alistair Popple
Matthew Brost writes: > On Thu, Oct 17, 2024 at 12:51:08PM +1100, Alistair Popple wrote: >> >> Matthew Brost writes: >> >> > On Wed, Oct 16, 2024 at 03:00:08PM +1100, Alistair Popple wrote: >> >> >> >> Matthew Brost writes: >> >> >> >> > Avoid multiple CPU page faults to the same device p

Re: [PATCH v2 03/29] mm/migrate: Trylock device page in do_swap_page

2024-10-24 Thread Matthew Brost
On Thu, Oct 17, 2024 at 12:51:08PM +1100, Alistair Popple wrote: > > Matthew Brost writes: > > > On Wed, Oct 16, 2024 at 03:00:08PM +1100, Alistair Popple wrote: > >> > >> Matthew Brost writes: > >> > >> > Avoid multiple CPU page faults to the same device page racing by trying > >> > to lock

Re: [PATCH v2 03/29] mm/migrate: Trylock device page in do_swap_page

2024-10-16 Thread Alistair Popple
Matthew Brost writes: > On Wed, Oct 16, 2024 at 03:00:08PM +1100, Alistair Popple wrote: >> >> Matthew Brost writes: >> >> > 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 v2 03/29] mm/migrate: Trylock device page in do_swap_page

2024-10-15 Thread Matthew Brost
On Wed, Oct 16, 2024 at 03:00:08PM +1100, Alistair Popple wrote: > > Matthew Brost writes: > > > 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 C

Re: [PATCH v2 03/29] mm/migrate: Trylock device page in do_swap_page

2024-10-15 Thread Alistair Popple
Matthew Brost writes: > 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

[PATCH v2 03/29] mm/migrate: Trylock device page in do_swap_page

2024-10-15 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