[lkml]   [2019]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v3 hmm 01/11] mm/mmu_notifiers: hoist do_mmu_notifier_register down_write to the caller

On 8/6/19 4:15 PM, Jason Gunthorpe wrote:
> From: Jason Gunthorpe <>
> This simplifies the code to not have so many one line functions and extra
> logic. __mmu_notifier_register() simply becomes the entry point to
> register the notifier, and the other one calls it under lock.
> Also add a lockdep_assert to check that the callers are holding the lock
> as expected.
> Suggested-by: Christoph Hellwig <>
> Signed-off-by: Jason Gunthorpe <>

Nice clean up.
Reviewed-by: Ralph Campbell <>

 \ /
  Last update: 2019-08-14 22:14    [W:0.237 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site