summaryrefslogtreecommitdiffstats
path: root/mm/truncate.c
diff options
context:
space:
mode:
authorGuo Ren <guoren@linux.alibaba.com>2022-04-07 15:33:22 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-27 13:50:49 +0200
commit4c26a96d0c29d3b9bd1a8b30d23082495e53411a (patch)
tree2c0c0362783a67eff932c7209e7ad5c1d8d877ab /mm/truncate.c
parent8d6937c1e0935621989dd52dd62f4368804bea73 (diff)
downloadlinux-stable-4c26a96d0c29d3b9bd1a8b30d23082495e53411a.tar.gz
linux-stable-4c26a96d0c29d3b9bd1a8b30d23082495e53411a.tar.bz2
linux-stable-4c26a96d0c29d3b9bd1a8b30d23082495e53411a.zip
xtensa: patch_text: Fixup last cpu should be master
commit ee69d4be8fd064cd08270b4808d2dfece3614ee0 upstream. These patch_text implementations are using stop_machine_cpuslocked infrastructure with atomic cpu_count. The original idea: When the master CPU patch_text, the others should wait for it. But current implementation is using the first CPU as master, which couldn't guarantee the remaining CPUs are waiting. This patch changes the last CPU as the master to solve the potential risk. Fixes: 64711f9a47d4 ("xtensa: implement jump_label support") Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Signed-off-by: Guo Ren <guoren@kernel.org> Reviewed-by: Max Filippov <jcmvbkbc@gmail.com> Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org> Cc: <stable@vger.kernel.org> Message-Id: <20220407073323.743224-4-guoren@kernel.org> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/truncate.c')
0 files changed, 0 insertions, 0 deletions