Message ID | 20210609113903.1421-31-vbabka@suse.cz (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=BPbg=LD=kvack.org=owner-linux-mm@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5DB15C48BDF for <linux-mm@archiver.kernel.org>; Wed, 9 Jun 2021 11:46:50 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id F3A456100A for <linux-mm@archiver.kernel.org>; Wed, 9 Jun 2021 11:46:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F3A456100A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 8CCAA6B0036; Wed, 9 Jun 2021 07:46:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 87CF16B006E; Wed, 9 Jun 2021 07:46:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6CFEE6B0070; Wed, 9 Jun 2021 07:46:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0018.hostedemail.com [216.40.44.18]) by kanga.kvack.org (Postfix) with ESMTP id 3A27C6B0036 for <linux-mm@kvack.org>; Wed, 9 Jun 2021 07:46:49 -0400 (EDT) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id D094B8249980 for <linux-mm@kvack.org>; Wed, 9 Jun 2021 11:46:48 +0000 (UTC) X-FDA: 78234008496.14.EDF3F62 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by imf28.hostedemail.com (Postfix) with ESMTP id 6CBB2200107C for <linux-mm@kvack.org>; Wed, 9 Jun 2021 11:46:44 +0000 (UTC) Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 8A313219EE; Wed, 9 Jun 2021 11:39:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1623238777; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2JMzciOjrM3f4PogJGc8S9HpllJu3Zah47/BJwa+Z4I=; b=HYimdiD0q/CIzWg6N9+ODMNUwd1vmK+xrYk38BNgyoP2eyp47gLB4RUh4/zYQD6PlFUxA5 LesyH/UW9lDttTY/jfpkBfcrWgskHewsYMPdpsNFOwWXZhmbK+9pBhc7JeD8meX6A5lLcA JSK8Xngjf3KQesVaKqF7iL7BWvNBKQ0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1623238777; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2JMzciOjrM3f4PogJGc8S9HpllJu3Zah47/BJwa+Z4I=; b=TikwQrejxZogM6sx8B9yhQLZFAqtzGFd6WvhKx8ugT1es4FCY/FZ93O8YnSXGrvUHti8CX 1DZ8SCb1IKNlXhCA== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id 5902A118DD; Wed, 9 Jun 2021 11:39:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1623238777; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2JMzciOjrM3f4PogJGc8S9HpllJu3Zah47/BJwa+Z4I=; b=HYimdiD0q/CIzWg6N9+ODMNUwd1vmK+xrYk38BNgyoP2eyp47gLB4RUh4/zYQD6PlFUxA5 LesyH/UW9lDttTY/jfpkBfcrWgskHewsYMPdpsNFOwWXZhmbK+9pBhc7JeD8meX6A5lLcA JSK8Xngjf3KQesVaKqF7iL7BWvNBKQ0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1623238777; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2JMzciOjrM3f4PogJGc8S9HpllJu3Zah47/BJwa+Z4I=; b=TikwQrejxZogM6sx8B9yhQLZFAqtzGFd6WvhKx8ugT1es4FCY/FZ93O8YnSXGrvUHti8CX 1DZ8SCb1IKNlXhCA== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id 8GQ7FXmowGD6XgAALh3uQQ (envelope-from <vbabka@suse.cz>); Wed, 09 Jun 2021 11:39:37 +0000 From: Vlastimil Babka <vbabka@suse.cz> To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christoph Lameter <cl@linux.com>, David Rientjes <rientjes@google.com>, Pekka Enberg <penberg@kernel.org>, Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>, Thomas Gleixner <tglx@linutronix.de>, Mel Gorman <mgorman@techsingularity.net>, Jesper Dangaard Brouer <brouer@redhat.com>, Peter Zijlstra <peterz@infradead.org>, Jann Horn <jannh@google.com>, Vlastimil Babka <vbabka@suse.cz> Subject: [RFC v2 30/34] mm: slub: Make object_map_lock a raw_spinlock_t Date: Wed, 9 Jun 2021 13:38:59 +0200 Message-Id: <20210609113903.1421-31-vbabka@suse.cz> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210609113903.1421-1-vbabka@suse.cz> References: <20210609113903.1421-1-vbabka@suse.cz> MIME-Version: 1.0 Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=HYimdiD0; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=TikwQrej; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=HYimdiD0; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=TikwQrej; dmarc=none; spf=pass (imf28.hostedemail.com: domain of vbabka@suse.cz designates 195.135.220.28 as permitted sender) smtp.mailfrom=vbabka@suse.cz X-Rspamd-Server: rspam02 X-Stat-Signature: nsceaz9ref39c5puh8prg3b16rum4pch X-Rspamd-Queue-Id: 6CBB2200107C X-HE-Tag: 1623239204-761553 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> |
Series |
SLUB: reduce irq disabled scope and make it RT compatible
|
expand
|
diff --git a/mm/slub.c b/mm/slub.c index 6e747e0d7dcd..cfd5a7660375 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -432,7 +432,7 @@ static inline bool cmpxchg_double_slab(struct kmem_cache *s, struct page *page, #ifdef CONFIG_SLUB_DEBUG static unsigned long object_map[BITS_TO_LONGS(MAX_OBJS_PER_PAGE)]; -static DEFINE_SPINLOCK(object_map_lock); +static DEFINE_RAW_SPINLOCK(object_map_lock); static void __fill_map(unsigned long *obj_map, struct kmem_cache *s, struct page *page) @@ -457,7 +457,7 @@ static unsigned long *get_map(struct kmem_cache *s, struct page *page) { VM_BUG_ON(!irqs_disabled()); - spin_lock(&object_map_lock); + raw_spin_lock(&object_map_lock); __fill_map(object_map, s, page); @@ -467,7 +467,7 @@ 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); - spin_unlock(&object_map_lock); + raw_spin_unlock(&object_map_lock); } static inline unsigned int size_from_object(struct kmem_cache *s)