From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E78ADC43217 for ; Fri, 8 Oct 2021 20:48:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CD4CC60EFF for ; Fri, 8 Oct 2021 20:48:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243042AbhJHUuj (ORCPT ); Fri, 8 Oct 2021 16:50:39 -0400 Received: from smtp.duncanthrax.net ([178.63.180.169]:43328 "EHLO smtp.duncanthrax.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243069AbhJHUui (ORCPT ); Fri, 8 Oct 2021 16:50:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=duncanthrax.net; s=dkim; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=NRZLbVYtbqTzMEvUTRV/83DJyzg6trhIBb8yH3RTIx4=; b=F0dsMDrnOxxNzBwpWsDI6juEXg vPQi0uHvk4NCwKpUawmX/GTq0JmhzVxACdGdxAvD5OqKqFa6+V1jH8zJ9/M4Eb6clVsqld2IOvU3i RfACxiNw+i1wk21dsEV4e0SeEJT3NQORtaTRL9L85kwHHjiPLKstR0/2Tu5IZm8EMvdU=; Received: from hsi-kbw-109-193-149-228.hsi7.kabel-badenwuerttemberg.de ([109.193.149.228] helo=x1.stackframe.org) by smtp.duncanthrax.net with esmtpa (Exim 4.93) (envelope-from ) id 1mYwnH-0006vO-KP; Fri, 08 Oct 2021 22:48:39 +0200 From: Sven Schnelle To: deller@gmx.de Cc: linux-parisc@vger.kernel.org Subject: [PATCH 3/4] parisc: disable preemption in send_IPI_allbutself() Date: Fri, 8 Oct 2021 22:48:25 +0200 Message-Id: <20211008204825.6229-4-svens@stackframe.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211008204825.6229-1-svens@stackframe.org> References: <20211008204825.6229-1-svens@stackframe.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org Otherwise we might not stop all other CPUs. Signed-off-by: Sven Schnelle --- arch/parisc/kernel/smp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/parisc/kernel/smp.c b/arch/parisc/kernel/smp.c index 1405b603b91b..3413e6949c87 100644 --- a/arch/parisc/kernel/smp.c +++ b/arch/parisc/kernel/smp.c @@ -219,11 +219,13 @@ static inline void send_IPI_allbutself(enum ipi_message_type op) { int i; - + + preempt_disable(); for_each_online_cpu(i) { if (i != smp_processor_id()) send_IPI_single(i, op); } + preempt_enable(); } -- 2.33.0