Message ID | 20180821231835.166639-1-joel@joelfernandes.org (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-2.web.codeaurora.org (Postfix) with ESMTP id 94129109C for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 21 Aug 2018 23:19:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 943952AD5B for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 21 Aug 2018 23:19:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 872742AE3E; Tue, 21 Aug 2018 23:19:02 +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=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 532022AD5B for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 21 Aug 2018 23:19:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3D55D6B213D; Tue, 21 Aug 2018 19:19:00 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 384026B213E; Tue, 21 Aug 2018 19:19:00 -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 29BF26B213F; Tue, 21 Aug 2018 19:19:00 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by kanga.kvack.org (Postfix) with ESMTP id DF6E66B213D for <linux-mm@kvack.org>; Tue, 21 Aug 2018 19:18:59 -0400 (EDT) Received: by mail-pf1-f197.google.com with SMTP id s1-v6so42110pfm.22 for <linux-mm@kvack.org>; Tue, 21 Aug 2018 16:18:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:mime-version:content-transfer-encoding; bh=iXRu6mqKrKlPHH0Xoja1r/KUw3eBTunSLRtdhX6rtss=; b=rH9RUpOIUxnK9McJ9hYNeVnaxYRIXOF3KAUUb6jx9ADTLpSGT8nmnbz80wI+r2Rlep Tawc8Ja9LbBw5fpYNaHH9EDBZ0cevGKp3h7ymZQQmlRHpWDqm4l79b+cL2gVwzirRr14 O71gpVebqbNHjxr35ncUhOMi5wXdtdjE/4WowXUkVbP/zFGoMyZw6EarUBdz7SpdiOPL aFaYjrnoqciVLCebR3DRyTa1JdI9s1PVNQIhUvDcg7c7k5Zu+yQzbnzwYk2YZGYDXa23 39uaIXmaIZp910bEUVK1Jt5bC5k7ESlbaKZtPmwYC7OkIQeCJBw8oQyZM4K1Fn66tk1w CCeA== X-Gm-Message-State: AOUpUlFMourB8XOebtCvBF1d9MhAADuiIVqvl5SmpgxBG0kjA5bHPAPD dYwrMM06nq8yQbTMXTaOIhFtKe/AddyVY8rsIvfHT/1keNAp5WvitKgD82667qXtMO0Pc2ZEAsI dBO7yD6GZA+EQPIefkmZ3rImpjWu6eIJNKh8c4Citv93Qoh97vEVp3EENtL91HUoJZVk0M4Jt92 Oid9/Rbxm9QS1U/smAQ93eCHQVrk84NpzBPTVO9P7gWsYtcNWcZ6/fHCvIPw8NQ4DNP4cTmo0n4 Uhogpq6efYUa2HTxTPAgKri96M3DA93r3WmeDC7cHknIHEePW/mTdWQXI3LoGPO43sD8+MXtAtt 5ZC2BsRWvHgyjKdbo7qoUn+Tv2YJ9RR7ZVRTNiE+sOwOOBx1tz2TzBpYPHRN95kixvExpBPgNZa 5 X-Received: by 2002:a62:1219:: with SMTP id a25-v6mr55194903pfj.104.1534893539500; Tue, 21 Aug 2018 16:18:59 -0700 (PDT) X-Received: by 2002:a62:1219:: with SMTP id a25-v6mr55194856pfj.104.1534893538594; Tue, 21 Aug 2018 16:18:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534893538; cv=none; d=google.com; s=arc-20160816; b=s9ohlUi5NUPlJ4EGXWFI1zwrfqgk/LC3Ql+JWdKIWyZCC6jDK6u7evl4R24pPQbSMf 0fcQODYY26pWZH8Icn1ZkjMc5Ur0CACC60vD0+iy8vnyavxLU7ObryjhSXVnXcASm2sV 0HYEcZofh9rglHUJhtS/DEFLYZjym/kOY4p8iO8hdLbV/pSJHJrDGsu4qW87oOP9QRKi 5ZXhC0QrOGJDmiXJ6nDDzGMLP5rxtpGgNEfBQJ0VmimjvH4u/PPnparIV6/4kIbmMP1i Wk7eJUA+XPEQC/XCABxFyz4K5Th1534Y8MnA/bUqOjLpUs2ghDSHiadKbXGDfNuMyuUE rfzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature:arc-authentication-results; bh=iXRu6mqKrKlPHH0Xoja1r/KUw3eBTunSLRtdhX6rtss=; b=lPsITp6qefkaDT8uDSWwlRlhMt/YmWFmX0Q44Mk8GUX6osqGd8k+JgClx9xLVIYZFz 7VI3GeCNu5JR2bc9S/QctONxhLgSIiSCi2SsiHHWgRS5U8kwlNylKKaxuA3wpWhMpaMA RK63BWzRUQ+3AUa9v3BnwXtmCVU+7dfIl8WF/Lqnrp8ozLctm459iO9DA6LW9JVEAGqv Lr/uBzApmwb+pTIv1gdyJpa8OIozfmOipF2r+TMoqif25EzlvC/tokL8lBtSqYhIfMbt 4HJpkLSM817KV44qbbfJUgJB5vQeO0Hue/Gr/vK7lg4jbe/QKiy21Yoxw8t/co0d/ycG HsZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b="ajds/Zpo"; spf=pass (google.com: domain of joel@joelfernandes.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=joel@joelfernandes.org Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id s16-v6sor25894pfh.88.2018.08.21.16.18.58 for <linux-mm@kvack.org> (Google Transport Security); Tue, 21 Aug 2018 16:18:58 -0700 (PDT) Received-SPF: pass (google.com: domain of joel@joelfernandes.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b="ajds/Zpo"; spf=pass (google.com: domain of joel@joelfernandes.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=joel@joelfernandes.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iXRu6mqKrKlPHH0Xoja1r/KUw3eBTunSLRtdhX6rtss=; b=ajds/Zpo6SuBC5FbDABU8lPssoPNl0E+84zV+65h/gmRN7iQ+4aFqF/hq3OkdkkrS4 tq8/xRtfjYdjUeegmhLVMzeJngJlrwvCcmXxCHcHjXWuBEIsAwT6ZnT3MMi4zH4Mlh32 Sjai166qYArpVa91kcw2O5s52Jq7EZXv3ZW7Y= X-Google-Smtp-Source: ANB0VdZnxasPeMX1LXzLzlnkDHkJqir3RZRfYps8S2hSoSHCXlQc6Nrn6LHnGho/RVDbHinakF8YMw== X-Received: by 2002:a62:3a08:: with SMTP id h8-v6mr100419pfa.61.1534893538175; Tue, 21 Aug 2018 16:18:58 -0700 (PDT) Received: from joelaf.mtv.corp.google.com ([2620:0:1000:1601:3aef:314f:b9ea:889f]) by smtp.gmail.com with ESMTPSA id a16-v6sm37356pgv.29.2018.08.21.16.18.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Aug 2018 16:18:57 -0700 (PDT) From: Joel Fernandes <joel@joelfernandes.org> To: linux-kernel@vger.kernel.org Cc: kernel-team@android.com, "Joel Fernandes (Google)" <joel@joelfernandes.org>, willy@infradead.org, stable@vger.kernel.org, peterz@infradead.org, Andrew Morton <akpm@linux-foundation.org>, linux-mm@kvack.org, NeilBrown <neilb@suse.com> Subject: [PATCH v2] mm: shmem: Correctly annotate new inodes for lockdep Date: Tue, 21 Aug 2018 16:18:35 -0700 Message-Id: <20180821231835.166639-1-joel@joelfernandes.org> X-Mailer: git-send-email 2.18.0.1017.ga543ac7ca45-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 |
Series |
[v2] mm: shmem: Correctly annotate new inodes for lockdep
|
expand
|
diff --git a/mm/shmem.c b/mm/shmem.c index 41b9bbf24e16..8264bbdbb6a5 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -2226,6 +2226,8 @@ static struct inode *shmem_get_inode(struct super_block *sb, const struct inode mpol_shared_policy_init(&info->policy, NULL); break; } + + lockdep_annotate_inode_mutex_key(inode); } else shmem_free_inode(sb); return inode;