From patchwork Fri Mar 13 08:05:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?SsO8cmdlbiBHcm/Dnw==?= X-Patchwork-Id: 11436191 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5E9626CA for ; Fri, 13 Mar 2020 08:06:19 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 44838206E2 for ; Fri, 13 Mar 2020 08:06:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 44838206E2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jCfJq-0002Nf-V6; Fri, 13 Mar 2020 08:05:22 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jCfJq-0002NU-29 for xen-devel@lists.xenproject.org; Fri, 13 Mar 2020 08:05:22 +0000 X-Inumbo-ID: 621a35d8-6501-11ea-bec1-bc764e2007e4 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 621a35d8-6501-11ea-bec1-bc764e2007e4; Fri, 13 Mar 2020 08:05:20 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id C702AAC24; Fri, 13 Mar 2020 08:05:19 +0000 (UTC) From: Juergen Gross To: xen-devel@lists.xenproject.org Date: Fri, 13 Mar 2020 09:05:15 +0100 Message-Id: <20200313080517.28728-1-jgross@suse.com> X-Mailer: git-send-email 2.16.4 Subject: [Xen-devel] [PATCH 0/2] xen/locks: fix preempt disabling in lock handling X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Juergen Gross , Stefano Stabellini , Julien Grall , Wei Liu , Andrew Cooper , Ian Jackson , George Dunlap , Jan Beulich MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Xen's rwlocks don't disable preemption at all, while spinlocks are doing it only after obtaining the lock. While not really critical, it is wrong. This series fixes that. Juergen Gross (2): xen/rwlocks: call preempt_disable() when taking a rwlock xen/spinlocks: fix placement of preempt_[dis|en]able() xen/common/spinlock.c | 9 ++++++--- xen/include/xen/rwlock.h | 18 +++++++++++++++++- 2 files changed, 23 insertions(+), 4 deletions(-)