Message ID | 20181030113545.30999-2-anders.roxell@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 86FCD15E9 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 30 Oct 2018 15:43:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 767072A700 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 30 Oct 2018 15:43:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A8A42A87C; Tue, 30 Oct 2018 15:43: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,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3CBB82A874 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 30 Oct 2018 15:43:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=img+Oy9HHcVgP2U9LvCzujPQrd+HY/H39/zWOo40OGw=; b=uWpC9zlfit322p bVcydnHnHwUqnQSA7ZbkRoLHvHnykKgZS9/gI315S+7dJlxua2ztyEq2FOIXj3Q1gDwvelWEj2yoQ k6JQYCQSSoAK0HvjqOtWV3JsAHpxfrYQFc/folMvQZ00sag3Mvgb5XXYu8FONZBRJ4uejsNX98ODn /chuf06bsINkD0ThN2G9ztqYy5TJXFYFIUbqLmiCYPWxUiFvMJBA+gRaL3AUO4dxMrIUYzSvAg/W7 rqZ7aKg9Ee/yoqSfizv36lj8r4WnEESJG+mVLwgl7z1up+hV7F3lm7E4fBnmWqJ1GHYOPoGY1r1i1 KdK51DVleH5iYq3aHfZQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHWAV-0000L8-Do; Tue, 30 Oct 2018 15:42:59 +0000 Received: from merlin.infradead.org ([205.233.59.134]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHVhg-0000kr-5M for linux-arm-kernel@bombadil.infradead.org; Tue, 30 Oct 2018 15:13:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; 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=0c4qq4Ww0v5TJSITOLozxcLN7WvXMS6Pv+NS1rx0eYU=; b=i1975IBGYv/RgPooZRVH+tIEwq PT+3YYSwKsIfSsyIqDRPyL1LvBPV97GWkpzME6EJXKvhnA8/QsdHfTCTnqtjL12oTLnKxHEyEhJBM Xzg4iajlsPOCRIBEeE6/PxCc7q4auUGkCSeHK9bRGrNQs/MnlPjSlsrI85fZUpmbeljuVOnFuJfMi yun04BMQ1bH6qBNGKm1Er/Rna9QqGQs8OweVzVk6CB+DO9v69SjEMXcnImotjx7HODOFeqTBdyS60 s3WMLXDMFdUaM4hTV1EihfddnarnLlrhY4wpBA5FhKLAJZBz/xCAct2pcVpAM3zCOBx0v5umHX/Hj KyHlW3ng==; Received: from mail-lf1-x143.google.com ([2a00:1450:4864:20::143]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHV42-0003aw-AJ for linux-arm-kernel@lists.infradead.org; Tue, 30 Oct 2018 14:32:20 +0000 Received: by mail-lf1-x143.google.com with SMTP id m18-v6so9029200lfl.11 for <linux-arm-kernel@lists.infradead.org>; Tue, 30 Oct 2018 07:32:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0c4qq4Ww0v5TJSITOLozxcLN7WvXMS6Pv+NS1rx0eYU=; b=gOwgddOR+rM/NtNShdA4L1NNw1ah30l4AEuLYCWkGLxRpGkzqsuwELBEJyXstMxvks r3xIVi8YMesJ+WLA6wEeQtB+6AHhfluoImBdENXlMGxg9GKiRGYsCdFDGvJOiJ6Tlyvn 8coK+mZ5pGtFlOWi8EUhQ4xAw8yLu8MTg5tik= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0c4qq4Ww0v5TJSITOLozxcLN7WvXMS6Pv+NS1rx0eYU=; b=m7o2MvhNToEhRqfQqGNTAKbzFzrJPA8snRV7NHpHnolrESyrmgThahmmuANO3i5fDa kv5oudIa6/lUDP/0qJfmORdZiQ3OwTry7OkSdMUAZGEK6iOa7NxVsQMUSDMmEKkODnJh U+r+ZjofNrRYcT1X9O3XCZp7w+tuxJYeectTkh4pS1EIPn/yS8ynkv7jtabgsDmyOTGh Hhg2crzUWXmyMXlRkfKffTuFaPoh6Pq7w7YPnxmeWNPw8weXeQuLiT7AWT/Lu6qjdaBJ CzX/CK/ZctLLabGSO1wYTDfyEGDtxajYrmDkqGU9dE/ua3Mg2R+LA2PKoQCzog0ceGZk OqdA== X-Gm-Message-State: AGRZ1gLx1KhCqyYXNgcauEe2hUGiLcUZ/F0k6s6dcW2GhrgXwttHPhIS 2e+J+lnAAsHd/eK7z8X56HytyZ4q8tMx0w== X-Google-Smtp-Source: AJdET5cBHlupzI8DFEfRW+LDvxxFFzuGpyilXSNopOL7zP/54j9IfzjkvZ65UOZv4HAurPUmo0LM8A== X-Received: by 2002:a19:41c4:: with SMTP id o187mr1719486lfa.32.1540899393326; Tue, 30 Oct 2018 04:36:33 -0700 (PDT) Received: from localhost (c-732171d5.07-21-73746f28.bbcust.telenor.se. [213.113.33.115]) by smtp.gmail.com with ESMTPSA id l67-v6sm3776781lfg.45.2018.10.30.04.36.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 Oct 2018 04:36:32 -0700 (PDT) From: Anders Roxell <anders.roxell@linaro.org> To: linux@armlinux.org.uk, gregkh@linuxfoundation.org, akpm@linux-foundation.org Subject: [PATCH v2 2/2] writeback: don't decrement wb->refcnt if !wb->bdi Date: Tue, 30 Oct 2018 12:35:45 +0100 Message-Id: <20181030113545.30999-2-anders.roxell@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181030113545.30999-1-anders.roxell@linaro.org> References: <20181030113545.30999-1-anders.roxell@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181030_103214_539291_73CC80F1 X-CRM114-Status: GOOD ( 14.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Anders Roxell <anders.roxell@linaro.org>, Arnd Bergmann <arnd@arndb.de>, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-serial@vger.kernel.org, tj@kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
[v2,1/2] serial: set suppress_bind_attrs flag only if builtin
|
expand
|
diff --git a/include/linux/backing-dev-defs.h b/include/linux/backing-dev-defs.h index 9a6bc0951cfa..c31157135598 100644 --- a/include/linux/backing-dev-defs.h +++ b/include/linux/backing-dev-defs.h @@ -258,6 +258,14 @@ static inline void wb_get(struct bdi_writeback *wb) */ static inline void wb_put(struct bdi_writeback *wb) { + if (WARN_ON_ONCE(!wb->bdi)) { + /* + * A driver bug might cause a file to be removed before bdi was + * initialized. + */ + return; + } + if (wb != &wb->bdi->wb) percpu_ref_put(&wb->refcnt); }