On 2021-11-10 10:54:33 [-0800], Minchan Kim wrote: > From: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx> The From line used to be From: Mike Galbraith <umgwanakikbuti@xxxxxxxxx> sorry if I dropped it earlier. > 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. > > Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx> > [minchan: remove the bit_spin_lock part and change the title] > Signed-off-by: Minchan Kim <minchan@xxxxxxxxxx> So you removed the bit_spin_lock part here but replaced the bitspin lock with a rwsem in an earlier patch in this series. This should work. Thank you. Sebastian