Message ID | 20210723225038.7yIzuPTXo%akpm@linux-foundation.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [01/15] userfaultfd: do not untag user pointers | expand |
--- a/mm/mmap_lock.c~mm-mmap_lock-fix-disabling-preemption-directly +++ a/mm/mmap_lock.c @@ -156,14 +156,14 @@ static inline void put_memcg_path_buf(vo #define TRACE_MMAP_LOCK_EVENT(type, mm, ...) \ do { \ const char *memcg_path; \ - preempt_disable(); \ + local_lock(&memcg_paths.lock); \ memcg_path = get_mm_memcg_path(mm); \ trace_mmap_lock_##type(mm, \ memcg_path != NULL ? memcg_path : "", \ ##__VA_ARGS__); \ if (likely(memcg_path != NULL)) \ put_memcg_path_buf(); \ - preempt_enable(); \ + local_unlock(&memcg_paths.lock); \ } while (0) #else /* !CONFIG_MEMCG */