Re: [PATCH v2 01/10] mmap locking API: initial implementation as rwsem wrappers

From: Michel Lespinasse
Date: Fri Mar 27 2020 - 17:52:25 EST


On Fri, Mar 27, 2020 at 5:16 AM Jason Gunthorpe <jgg@xxxxxxxx> wrote:
>
> On Thu, Mar 26, 2020 at 07:10:49PM -0700, Michel Lespinasse wrote:
>
> > +static inline bool mmap_is_locked(struct mm_struct *mm)
> > +{
> > + return rwsem_is_locked(&mm->mmap_sem) != 0;
> > +}
>
> I didn't notice any callers to this in the series? Can it be deleted?

Good catch. Yes, it should be deleted. There were 5 uses in v1 of this
patchset and I got rid of these in v2 of the patchset, but forgot to
actually remove the function definition here.

--
Michel "Walken" Lespinasse
A program is never fully debugged until the last user dies.