Re: [PATCH v2 3/7] mm/gup: Fix the outdated code comments above get_user_pages_unlocked()

From: Baoquan He
Date: Tue Apr 01 2025 - 11:30:30 EST


On 04/01/25 at 03:51pm, Oscar Salvador wrote:
> On Mon, Mar 31, 2025 at 04:13:23PM +0800, Baoquan He wrote:
> > Since commit f0818f472d8d ("mm: gup: add get_user_pages_locked
> > and get_user_pages_unlocked"), get_user_pages() doesn't need to have
> > mmap_lock held anymore. It calls __get_user_pages_locked() which
> > can acquire and drop the mmap_lock internaly.
> >
> > Hence remove the incorrect code comments now.
>
> Uhm, I think this one should be dropped according to

Yeah, this v2 series was sent earlier than your comment in v1. Sorry
about the mess.

>
> https://lore.kernel.org/linux-mm/20250330121718.175815-4-bhe@xxxxxxxxxx/T/#m1aa161016ab98a6d85bcb657a729e01cb98763ec
>
> ?
>
>
> --
> Oscar Salvador
> SUSE Labs
>