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

From: Jason Gunthorpe
Date: Fri Mar 27 2020 - 08:16:29 EST


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?

Jason