Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4852621pxj; Tue, 25 May 2021 18:57:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZTaf2QhHhhIYW9JjIiwF6rdfg4co/n54HF2GQg9KvMoUdxbnQHqRsBBMD3HDC885wQ422 X-Received: by 2002:a17:906:1305:: with SMTP id w5mr30978033ejb.404.1621994262639; Tue, 25 May 2021 18:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621994262; cv=none; d=google.com; s=arc-20160816; b=j7665AJYof7axd3/5qbT1suq1LRphBZbYYOFU7m69xafgO01AcCIvHCvRfXlugAALe I3EdgKSqPcYHbiJ+wgYs6DTADAfcI2IV8nCSi5Q0e8Qwks68vDW7eq6lDqGOb1hlsCrz M1RdEEg03hk9niwj1K8Z82MLE5l8+yll+Q7TZu5yEcmjEsOMFosKPggvkMWt8hbSzUkV GuYSLYiTKYHfyCnXdT936++poyQKdhPdB2HEGgI5FR2EHD1j+KtJkauXtXAIrR2ropNV x+SHAg/PSz8QsjVwKUL5M3U64U6Ew2bM96QtCR0e33JgCwQkd+OLpFABa23dUzfB7OBJ Mt5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=bMebNfe3du2cuTUylMvfqkftgKiOLtLWe8iKpce7H0M=; b=ohV3hX5hbEhW54dVG0I6NPO3xPlBS4fMsDt7A93I2Rk4ThRr/0/quZsg1zwU4heJof YEWAPXLthk0IHUJYZ8D1M9FrtnOB07WYJgihrut/H8aJgSOCMFBd/h68Xn58btoljxW5 yapKT26qbIyv+T7M9wL0A2F6VFCERgVaDaTig9yysber45JcncXX18wQ9FxQl16UgON6 iOysKGaL6ESUdsVuh9gmlOsIuQBekuG7RqfoIYzDyzGTc+rS1JRIceX9vMM52NvBos+F QbEwMdODPLfXALZ4HlYxXF6OMzfykz2I4i2+uXMtroE68buxZkVm9gaEjDw1IfVWa89v XV7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=XAsPL0sT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id be21si14802808edb.87.2021.05.25.18.57.19; Tue, 25 May 2021 18:57:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=XAsPL0sT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231124AbhEYXS2 (ORCPT + 99 others); Tue, 25 May 2021 19:18:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:36630 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230145AbhEYXS2 (ORCPT ); Tue, 25 May 2021 19:18:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5F9A861042; Tue, 25 May 2021 23:16:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1621984616; bh=1L+wt9+EMclSFh/NImV8VXARHos+R8K+93TCAp42yGw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XAsPL0sTczCZgtSYc1suxOXPRTi+wtwTzolMB7oyFsPRG3TE2eUow3D+VjQSWwdqO jrD2xkHhN9GJhAUaoRlNsZAi9H7oRwWTM0lIvBAEQKR+TYhJNQzWCryVRYgD1UN18x ClFCYF+jOvH++Nq09N50WoXd2zK41Riuz3kK4ukc= Date: Tue, 25 May 2021 16:16:55 -0700 From: Andrew Morton To: Vlastimil Babka Cc: Yejune Deng , cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, Sebastian Andrzej Siewior , Thomas Gleixner , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Yejune Deng Subject: Re: [PATCH 2/2] mm: slub: use DEFINE_RAW_SPINLOCK init object_map_lock Message-Id: <20210525161655.bd9f91e9c29758142eb955e2@linux-foundation.org> In-Reply-To: <427f87d6-b506-a225-1887-cf8c13d99634@suse.cz> References: <1621938235-11947-1-git-send-email-yejunedeng@gmail.com> <1621938235-11947-2-git-send-email-yejunedeng@gmail.com> <427f87d6-b506-a225-1887-cf8c13d99634@suse.cz> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 25 May 2021 12:46:35 +0200 Vlastimil Babka wrote: > On 5/25/21 12:23 PM, Yejune Deng wrote: > > Use DEFINE_RAW_SPINLOCK instead of DEFINE_SPINLOCK object_map_lock > > that won't be preempted on mainline and PREEMPT_RT kernels. > > > > Signed-off-by: Yejune Deng > > RT tree also has such patch, with IMHO more thorough description: Yes please, a more thorough decription is needed. The description provided with this patch could be applied to every spinlock in the kernel!