Received: by 10.192.165.148 with SMTP id m20csp284742imm; Wed, 9 May 2018 12:39:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoo+YfoC4CnCfTttIo26j1Z72fM/bow4k272osmoQZ+mPrRKGx3AeqJL2EAHmIVrqaj9F7y X-Received: by 2002:a63:6c04:: with SMTP id h4-v6mr37429973pgc.220.1525894783340; Wed, 09 May 2018 12:39:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525894783; cv=none; d=google.com; s=arc-20160816; b=cRlVo8GG0hFW0nRCwRpWCyswjXv3Xy5QGKWyi7DPK3o3Ja03aqDZ4Ywjd7Gm0uVxB9 9kl9TEjFLBUDGhy7lbZphUj6wFFctyy7tckumNQM+65qVAmJLOpbQt2XfF1EOxf/4M7k 9ShwtustVsBhOJUCHPkdXeJNf2OJpGYk5hj3r42QI8ky59cYYfdCRSolLw0Hij27eY2d +373m6skAdMXhwB6i+OkSXiabM3i6sWP1AYgCsNHHsPgp4FPGetUHuqbbcrei5F08bPb xpTKezEnAibBeLZNkpHuweRFsoby7DCSA76hhZ2zVA/5k0hCl5ac1SQt7oWXoOsu+xjW BPJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=nOyZYX/Ivc1o5BOOrgBvb7XeN34NGIaj1SE+Veq8ZXg=; b=KVBBDGy/sS4Yzd7LdyFo0lkf7a6bqGC+sMx7XzGh8pNNEb3aJoIJHJKqB1lPk0zmpR N5I7dVsC9qRf8cblfmWTbLKogI4Hv0HI9EMaTiRISoJ2lKCzMsmqJY5q/jQu9i30cPcx staXD9cLq+9R5bxY0lbJ0Uh1awUZ0eIAmtMmyDkmUUr0vpRM6R1TJWoAUYV4NMsAWAVC LJB9SyhShmq7f2OB6IefmUooWpTuSIbjxjsYdInGTkg3FlqtKKiQtC6FLYa03MkmforW zsAtosTEzWD3+BVjHntgVWKiqazZD9VKejYwHoUKijnYyVsY6Ap87k6DXmyhJT5hI6u1 fNiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10-v6si21915536pgr.270.2018.05.09.12.39.28; Wed, 09 May 2018 12:39:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965683AbeEITjB (ORCPT + 99 others); Wed, 9 May 2018 15:39:01 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:34580 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965631AbeEITiv (ORCPT ); Wed, 9 May 2018 15:38:51 -0400 Received: from localhost ([127.0.0.1] helo=bazinga.breakpoint.cc) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1fGUvE-0005v9-2p; Wed, 09 May 2018 21:38:44 +0200 From: Sebastian Andrzej Siewior To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, Peter Zijlstra , Ingo Molnar , linux-mm@kvack.org, Shaohua Li , linux-raid@vger.kernel.org, Anna-Maria Gleixner , Sebastian Andrzej Siewior Subject: [PATCH 8/8] md: raid5: Do not disable irq on release_inactive_stripe_list() call Date: Wed, 9 May 2018 21:36:45 +0200 Message-Id: <20180509193645.830-9-bigeasy@linutronix.de> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180509193645.830-1-bigeasy@linutronix.de> References: <20180509193645.830-1-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anna-Maria Gleixner There is no need to invoke release_inactive_stripe_list() with interrupts disabled. All call sites, except raid5_release_stripe(), unlock ->device_lock and enable interrupts before invoking the function. Make it consistent. Signed-off-by: Anna-Maria Gleixner [bigeasy: s@atomic_dec_and_lock@refcount_dec_and_lock@g ] Signed-off-by: Sebastian Andrzej Siewior --- drivers/md/raid5.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 28453264c3eb..9433b2619006 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -414,9 +414,8 @@ void raid5_release_stripe(struct stripe_head *sh) INIT_LIST_HEAD(&list); hash =3D sh->hash_lock_index; do_release_stripe(conf, sh, &list); - spin_unlock(&conf->device_lock); + spin_unlock_irqrestore(&conf->device_lock, flags); release_inactive_stripe_list(conf, &list, hash); - local_irq_restore(flags); } } =20 --=20 2.17.0