path: root/fs/proc/internal.h
diff options
authorMike Galbraith <>2022-01-21 22:14:17 -0800
committerLinus Torvalds <>2022-01-22 08:33:37 +0200
commita37265995c867a4e413761d846cef0445b08d6d5 (patch)
tree994b5c69c3d69573702b62d045868f235b75ace5 /fs/proc/internal.h
parentb475d42d2c43321d8bea685f54916220cb76b511 (diff)
zsmalloc: replace get_cpu_var with local_lock
The usage of get_cpu_var() in zs_map_object() is problematic because it disables preemption and makes it impossible to acquire any sleeping lock on PREEMPT_RT such as a spinlock_t. Replace the get_cpu_var() usage with a local_lock_t which is embedded struct mapping_area. It ensures that the access the struct is synchronized against all users on the same CPU. [minchan: remove the bit_spin_lock part and change the title] Link: Signed-off-by: Mike Galbraith <> Signed-off-by: Thomas Gleixner <> Signed-off-by: Sebastian Andrzej Siewior <> Signed-off-by: Minchan Kim <> Tested-by: Sebastian Andrzej Siewior <> Cc: Peter Zijlstra (Intel) <> Cc: Sergey Senozhatsky <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'fs/proc/internal.h')
0 files changed, 0 insertions, 0 deletions