Message ID | 20180703200141.28415-5-bigeasy@linutronix.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1EA7A60225 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 3 Jul 2018 20:04:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B408286FB for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 3 Jul 2018 20:04:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F15B728CCA; Tue, 3 Jul 2018 20:04:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8706B286FB for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 3 Jul 2018 20:04:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 967156B0010; Tue, 3 Jul 2018 16:04:08 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 9166A6B0266; Tue, 3 Jul 2018 16:04:08 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 82DBF6B0269; Tue, 3 Jul 2018 16:04:08 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wr0-f197.google.com (mail-wr0-f197.google.com [209.85.128.197]) by kanga.kvack.org (Postfix) with ESMTP id 238EE6B0010 for <linux-mm@kvack.org>; Tue, 3 Jul 2018 16:04:08 -0400 (EDT) Received: by mail-wr0-f197.google.com with SMTP id t10-v6so1486502wre.19 for <linux-mm@kvack.org>; Tue, 03 Jul 2018 13:04:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=8VM8VaD0QIVUkEicsrsScRc0yvcvOk/CyVHoZXa1hr0=; b=RL4qTQ7ENDdV04flyv2uR8ELKIb0oeus0p9Ar3vYRujcI3K3xSWoVj1D457gh86TQo Dq8AJXNEEIiozt+dKsBJcAu+9/yZpBFcocJpCi17IdlUAnDoM8U7HOMTYIZLMAvPizd8 6P85NUdE9ADwsjzjdOb4CK6L8xfEg8MSHIQ7WtuREWn+0gWi0j+MHW3zzrYrPnpIjvj+ RhAG2xelu9drKA3MZvVHtiGB9sA/2lxZTLLRY/ZTDawM9EKDxT9WRdhJrQrffpd/HWQ2 c79CAVtu8ASFJ626yvZSVc7qW51p3+WBK2jMV+fLb4uTb97e16l/R2z42fxcftoFHbml KKQw== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bigeasy@linutronix.de designates 2a01:7a0:2:106d:700::1 as permitted sender) smtp.mailfrom=bigeasy@linutronix.de X-Gm-Message-State: APt69E3Ff/8DkqxU8r/FwvrlI1BsCzQCXQD9xw3LnSdCz/F5LVWRfsUd DIJn7l/neA2KQLRLXWvFeR5xnQq9zW0lc68y9//BuNXlvG0lA7RQlpmJM7clNg9hv4GD34q8YZy 7OcibrWk0LE9VlsrXGunyLWMVccRnFUm3M296nCm/Uh4MKVdB/6DucJVbq2mprqMk1Q== X-Received: by 2002:adf:9465:: with SMTP id 92-v6mr25637491wrq.283.1530648247701; Tue, 03 Jul 2018 13:04:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeYsoyQYKlwzUZvNuni/KhMS2NA79zLhOKxoUT5Cz7txo1TaIPS3jeV7WlwiszVZoZhaU4d X-Received: by 2002:adf:9465:: with SMTP id 92-v6mr25637460wrq.283.1530648246943; Tue, 03 Jul 2018 13:04:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530648246; cv=none; d=google.com; s=arc-20160816; b=XNYSEVzPcbi5AMeBVY3IClO3xyfiOZfMYUiwIgetX40SC6t5r7m9q1SE4PsDbJMup/ XaAYPBza1YhXDtkOrMapEY9Zr8BcLVX/CflvmGSy5Y5Ya8s3HPGO5PF9sgAf4VlBlKDt esED1vblJKwFue5ScT9TdPFTPjbRlP3EZEdgGnhTXKsNoXDj+3NJCDEDC7S/Ed7WCXuo JTYP6o8ADVTPKWDlk7AZPfTSxz9RJSKJwj7VTEG0X67JLqINBEok9JrkZrx9knMok/0l GtgX+GSfoXc+RlSCWJdzkuHuC6Bq74M5L2EcGMNfPaqfIOe3zVu5pRUEZusI4RnpxNqs 6ovg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=8VM8VaD0QIVUkEicsrsScRc0yvcvOk/CyVHoZXa1hr0=; b=CHx1ghczV1phS2s6PZdPrcN8fVNILQfSo6W48vW1H45ERQ4XDZv0KbYhyw1M6SpW2e /ior/VqaNgZlqOyhYtbwjgVyhKlr/DwlDuOUQ12RhngXbL+qmJQPxXYYpszBHJrIN+FO wRTgV0Luswlz3kUg4XGjaJPVns44lRR492C/Q+qnlpy0qhIbBMMnXCmdAb6rSCAikVBo s+t2dbuepSN+1Oj3dsiMbZiR/6EujAg1pZ6WKlhfJ38gohjVmp00m7ev5KBkiZCoPQjp QOlDuVOCE32wvJ6tD18catxeleBFcPX/UHB/bVeza5gyL6KLBDkimjLm3kegUbwRdoSD 26tA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of bigeasy@linutronix.de designates 2a01:7a0:2:106d:700::1 as permitted sender) smtp.mailfrom=bigeasy@linutronix.de Received: from Galois.linutronix.de (Galois.linutronix.de. [2a01:7a0:2:106d:700::1]) by mx.google.com with ESMTPS id i124-v6si1443822wmg.205.2018.07.03.13.04.06 for <linux-mm@kvack.org> (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 03 Jul 2018 13:04:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bigeasy@linutronix.de designates 2a01:7a0:2:106d:700::1 as permitted sender) client-ip=2a01:7a0:2:106d:700::1; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bigeasy@linutronix.de designates 2a01:7a0:2:106d:700::1 as permitted sender) smtp.mailfrom=bigeasy@linutronix.de Received: from localhost ([127.0.0.1] helo=bazinga.breakpoint.cc) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from <bigeasy@linutronix.de>) id 1faRUu-0001tM-S9; Tue, 03 Jul 2018 22:02:01 +0200 From: Sebastian Andrzej Siewior <bigeasy@linutronix.de> To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@kernel.org>, Anna-Maria Gleixner <anna-maria@linutronix.de>, linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org>, Sebastian Andrzej Siewior <bigeasy@linutronix.de> Subject: [PATCH 4/6] bdi: Use irqsave variant of refcount_dec_and_lock() Date: Tue, 3 Jul 2018 22:01:39 +0200 Message-Id: <20180703200141.28415-5-bigeasy@linutronix.de> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180703200141.28415-1-bigeasy@linutronix.de> References: <20180703200141.28415-1-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/mm/backing-dev.c b/mm/backing-dev.c index 55a233d75f39..f5981e9d6ae2 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c @@ -473,11 +473,8 @@ void wb_congested_put(struct bdi_writeback_congested *congested) { unsigned long flags; - local_irq_save(flags); - if (!refcount_dec_and_lock(&congested->refcnt, &cgwb_lock)) { - local_irq_restore(flags); + if (!refcount_dec_and_lock_irqsave(&congested->refcnt, &cgwb_lock, &flags)) return; - } /* bdi might already have been destroyed leaving @congested unlinked */ if (congested->__bdi) {