Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp879052pxf; Wed, 7 Apr 2021 14:00:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkFxbQHhJQuZ0wzVNmuYod5EqY8/qYRuhG26QoLFLOihLOj/IxrEqhq0XTsvwwSx7D3RLH X-Received: by 2002:a05:6e02:68f:: with SMTP id o15mr4162343ils.106.1617829204245; Wed, 07 Apr 2021 14:00:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617829204; cv=none; d=google.com; s=arc-20160816; b=Lfxdx+XdYk6pB3IgP+entkJRH5ddefbI8O400b1hGn0X8tRXL6ihQIK5UrZRSJam9b 0NfZopl/h8UH4U+GkOA7x3ePamTYQl3yTAKJSt0MqgPoxz1bVEREvEbcJPiI28gEfhAc znhnHv3Fryxya2ulM6FhcbDrl3nrDaI6gM/QjE9DMvxk03D4fijRWBQRojCyRPK9YkOm WWFfsTA1C95QQncMw0ORm6tDYWAcnwnItlvT7CZ6PPgUd3mWBzx257RLke1dEOKIktoj JlFb+relANGDlK8jmSNYGkDiSEj6bjnuITTYe/kXs+lg/ZcjP3pSdMO69CiKMANWJ2jW ME3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=NwLKTNKDKP75b7p50B/o71iDiFr0JTQFhm3wPogEFdU=; b=iOYvqVeiYRPWfNwbLh8EqYGNXQjMla6/0sz2ErqJ4tzsC89mEBtp4/+DXFAFMdCDng AW4Fw1GEzP5icRVEyak6AB7WBh/MdxuVTMINQfszGIsXlmgi5mBFOBTCfsh4j7rW87N9 +rtuV7Yo546W+MGeouFIlZ0v8OhT4JHbafhpQbynp2n49lnkE2ClkC2qkbJxbHdgQuPL p/B2Hb5iCCuPUm5HGJ1dQB1+0aYvybRI0BuDIYBYiWzIT4r0vHTXLwssdunneIVKpNfl dq7p/y+Qp97BuluPglJqv6eVtyNsrdPbfDMx3WbtSOH2ze0WyLAAKfGGwLgbmeyhmdQR LfXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c1si21521470jam.95.2021.04.07.13.59.52; Wed, 07 Apr 2021 14:00:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231892AbhDGNAl (ORCPT + 99 others); Wed, 7 Apr 2021 09:00:41 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:37574 "EHLO mail-wr1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231684AbhDGNAj (ORCPT ); Wed, 7 Apr 2021 09:00:39 -0400 Received: by mail-wr1-f53.google.com with SMTP id u11so5456128wrp.4; Wed, 07 Apr 2021 06:00:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=NwLKTNKDKP75b7p50B/o71iDiFr0JTQFhm3wPogEFdU=; b=uZc1CazioGqDDGzGCDI/kQr2FLSJ+clYEQ85NDTpaTtJ9LTkTeMc2kiOZ6wdebpnii LSoJKiPRbMQUDv5hcCBuCHqQTuAMpCRzY/IEYs+Fs03ZOUxxNfZbFiOeC1EiZysMslrS +yEBhxJja1siX4XqrwJt2uGOW8PWgrnkIuOGd0+vEQoIHuOtaL2UE4CrY0xUjVa/jD+I //SOYsB5MIvNziNlPk5xlcJvoZPRY7G5sBONIAcS+OeMCUttcgtRFfWQblQCfO648AFo dL1FaIx6lpD/x9MhKEtufPn80QVnDmtp8JLmxWoR7+RWiNBFhbW7eTBw3gg/F9XrnctE WPlA== X-Gm-Message-State: AOAM531HNNibMTEByaVRxXsqT2vvSfotodaTAzAzf1xrksynCYaxzCub /0bh1KFTfzBC08uFNuN09PQ= X-Received: by 2002:a05:6000:2a7:: with SMTP id l7mr3338450wry.413.1617800427739; Wed, 07 Apr 2021 06:00:27 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id k3sm19834667wrc.67.2021.04.07.06.00.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Apr 2021 06:00:26 -0700 (PDT) Date: Wed, 7 Apr 2021 13:00:25 +0000 From: Wei Liu To: Luca Fancellu Cc: sstabellini@kernel.org, jgross@suse.com, jgrall@amazon.com, boris.ostrovsky@oracle.com, tglx@linutronix.de, wei.liu@kernel.org, jbeulich@suse.com, yyankovskyi@gmail.com, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, bertrand.marquis@arm.com Subject: Re: [PATCH] xen/evtchn: Change irq_info lock to raw_spinlock_t Message-ID: <20210407130025.tfe6aszjyjzz6ar2@liuwe-devbox-debian-v2> References: <20210406105105.10141-1-luca.fancellu@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210406105105.10141-1-luca.fancellu@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 06, 2021 at 11:51:04AM +0100, Luca Fancellu wrote: > Unmask operation must be called with interrupt disabled, > on preempt_rt spin_lock_irqsave/spin_unlock_irqrestore > don't disable/enable interrupts, so use raw_* implementation > and change lock variable in struct irq_info from spinlock_t > to raw_spinlock_t > > Cc: stable@vger.kernel.org > Fixes: 25da4618af24 ("xen/events: don't unmask an event channel > when an eoi is pending") > > Signed-off-by: Luca Fancellu Reviewed-by: Wei Liu