lkml.org 
[lkml]   [2020]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 06/10] mmap locking API: convert nested write lock sites
On Fri, Mar 27, 2020 at 03:50:58PM -0700, Michel Lespinasse wrote:

> @@ -26,6 +31,12 @@ static inline void mmap_write_unlock(struct mm_struct *mm)
> up_write(&mm->mmap_sem);
> }
>
> +/* Pairs with mmap_write_lock_nested() */
> +static inline void mmap_write_unlock_nested(struct mm_struct *mm)
> +{
> + up_write(&mm->mmap_sem);
> +}
> +
> static inline void mmap_downgrade_write_lock(struct mm_struct *mm)
> {
> downgrade_write(&mm->mmap_sem);

Why does unlock_nested() make sense ?

\
 
 \ /
  Last update: 2020-04-01 15:43    [W:0.489 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site