From patchwork Thu Jun 18 20:12:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Andrzej Siewior X-Patchwork-Id: 11612955 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 C488B92A for ; Thu, 18 Jun 2020 20:12:52 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 918C8207E8 for ; Thu, 18 Jun 2020 20:12:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 918C8207E8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linutronix.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id D4F008D005C; Thu, 18 Jun 2020 16:12:51 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id CD86E8D0052; Thu, 18 Jun 2020 16:12:51 -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 BC8BF8D005C; Thu, 18 Jun 2020 16:12:51 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0121.hostedemail.com [216.40.44.121]) by kanga.kvack.org (Postfix) with ESMTP id A09D18D0052 for ; Thu, 18 Jun 2020 16:12:51 -0400 (EDT) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 62EFA82499B9 for ; Thu, 18 Jun 2020 20:12:51 +0000 (UTC) X-FDA: 76943430942.01.trees10_470640926e13 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin01.hostedemail.com (Postfix) with ESMTP id EA15E20001BBAB2A for ; Thu, 18 Jun 2020 20:12:50 +0000 (UTC) X-Spam-Summary: 2,0,0,b903606b2c4e339d,d41d8cd98f00b204,bigeasy@linutronix.de,,RULES_HIT:41:355:379:541:800:960:968:973:988:989:1260:1261:1311:1314:1345:1359:1437:1513:1515:1521:1534:1540:1711:1714:1730:1747:1777:1792:2198:2199:2393:2559:2562:2693:3138:3139:3140:3141:3142:3351:3867:3868:3870:3871:3872:3874:4419:5007:6261:9592:10004:11026:11473:11658:11914:12043:12114:12160:12296:12297:12555:12895:13069:13161:13229:13311:13357:14096:14181:14384:14394:14721:21080:21451:21627:21740:21987:30054:30070,0,RBL:193.142.43.55:@linutronix.de:.lbl8.mailshell.net-64.201.201.201 62.8.6.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: trees10_470640926e13 X-Filterd-Recvd-Size: 2092 Received: from Galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by imf08.hostedemail.com (Postfix) with ESMTP for ; Thu, 18 Jun 2020 20:12:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=flow.W.breakpoint.cc) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1jm0tw-00028j-6W; Thu, 18 Jun 2020 22:12:44 +0200 From: Sebastian Andrzej Siewior To: linux-mm@kvack.org Cc: Christopher Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Thomas Gleixner , Sebastian Andrzej Siewior , Yu Zhao Subject: [PATCH 2/2] slub: Drop lockdep_assert_held() from put_map() Date: Thu, 18 Jun 2020 22:12:34 +0200 Message-Id: <20200618201234.795692-2-bigeasy@linutronix.de> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200618201234.795692-1-bigeasy@linutronix.de> References: <20200618201234.795692-1-bigeasy@linutronix.de> MIME-Version: 1.0 X-Rspamd-Queue-Id: EA15E20001BBAB2A X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 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: There is no point in using lockdep_assert_held() unlock that is about to be unlocked. It works only with lockdep and lockdep will complain if spin_unlock() is used on a lock that has not been locked. Remove superfluous lockdep_assert_held(). Cc: Yu Zhao Signed-off-by: Sebastian Andrzej Siewior --- mm/slub.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index 72195cafbb503..5a43ad225427f 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -469,8 +469,6 @@ static unsigned long *get_map(struct kmem_cache *s, struct page *page) static void put_map(unsigned long *map) __releases(&object_map_lock) { VM_BUG_ON(map != object_map); - lockdep_assert_held(&object_map_lock); - spin_unlock(&object_map_lock); }