Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp285143imu; Wed, 19 Dec 2018 18:39:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/U+79hnKx3qM27HFlX8XMjpQ7oJ2Cc5hq5NsiZXlXjIYq+ONbtcefo+wILDuhig1m91hpaZ X-Received: by 2002:a17:902:bd86:: with SMTP id q6mr21897785pls.16.1545273564454; Wed, 19 Dec 2018 18:39:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545273564; cv=none; d=google.com; s=arc-20160816; b=zfqscUiKqwOJeW+wWzgOkz6IsiAoLJGfEAv/Q/SMsPhitTWsemK1cx8uzDbYk5UPmE T+eSMG/PpqRbYD2+BfzpE7ZdBclbrHhC/1AmQvkQvUNiCcOdUKFCQaxNOLB7KKVQtE9l s554IxJ7OyPAJ7B0vQouJQnYcUY1S0bnOX58IRtHGY9qd1J1Auwvo2iR18xQ5d1B2IFi hW+1U/FyyXH5n9XKmlgerjY9+4rh6026NoRJMMGImr6w0bgdHq8F3WUogAmxwJSuBZrn qFD8n9hta4lGlYHd+hGdBiuRtQ6pFSShDJWDPjeQwcmdG6ttzmhyEZvVpEtwniGWJ8Ch 1D9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=/5orsCxvHytoHSRoPYaWblTsB1fwXy+jJ4QryWvh6Lw=; b=YUs3TMEpdgaGxGc3rwTizQs6uAxXyVPLKQVgOm2ib1vvVPBkv0fYwiavexImDmubc+ 9ixUSyYhPS/2VL80P6Y4PHiwKKnbWxFdPIFmo155l55H58XqlYrvdNxLLVZSqi28K0U3 zkwvhA7NF9Fjb/9lEra3vo0qEg1a4leD0tnz5StEC/dOALuOgBCCEbUIQqX65WPs+bL1 7Vliq4Eo9a4h+SpffrjS69gE+hfNpuQt6ST7LTXinA+Iyte095eCvKPrTX74DYp7HdMK jw3P4Cb7lbvRbbsGlnv2unb0fV1VDkORepwDb6+vtVrXrdxVHhFfg7DzKNFGjQHvy5D9 vW3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 91si17442717ply.214.2018.12.19.18.39.09; Wed, 19 Dec 2018 18:39:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729538AbeLTBq7 (ORCPT + 99 others); Wed, 19 Dec 2018 20:46:59 -0500 Received: from mail.windriver.com ([147.11.1.11]:34059 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726604AbeLTBq7 (ORCPT ); Wed, 19 Dec 2018 20:46:59 -0500 Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id wBK1kcmW029929 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 19 Dec 2018 17:46:39 -0800 (PST) Received: from [128.224.162.162] (128.224.162.162) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 19 Dec 2018 17:46:38 -0800 Subject: Re: [PATCH v2] kmemleak: Turn kmemleak_lock to raw spinlock on RT To: Sebastian Andrzej Siewior , Catalin Marinas CC: , , , , References: <1542877459-144382-1-git-send-email-zhe.he@windriver.com> <20181123095314.hervxkxtqoixovro@linutronix.de> <40a63aa5-edb6-4673-b4cc-1bc10e7b3953@windriver.com> <20181130181956.eewrlaabtceekzyu@linutronix.de> <20181205191400.qrhim3m3ak5hcsuh@linutronix.de> <16ac893a-a080-18a5-e636-7b7668d978b0@windriver.com> <20181218150744.GB20197@arrakis.emea.arm.com> <20181219153022.w5le6nf7meiogh72@linutronix.de> From: He Zhe Message-ID: Date: Thu, 20 Dec 2018 09:46:34 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181219153022.w5le6nf7meiogh72@linutronix.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [128.224.162.162] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/12/19 23:30, Sebastian Andrzej Siewior wrote: > On 2018-12-18 15:07:45 [+0000], Catalin Marinas wrote: > … >> It may be worth running some performance/latency tests during kmemleak >> scanning (echo scan > /sys/kernel/debug/kmemleak) but at a quick look, >> I don't think we'd see any difference with a raw_spin_lock_t. >> >> With a bit more thinking (though I'll be off until the new year), we >> could probably get rid of the kmemleak_lock entirely in scan_block() and >> make lookup_object() and the related rbtree code in kmemleak RCU-safe. > Okay. So let me apply that patch into my RT tree with your ack (from the > other email). And then I hope that it either shows up upstream or gets > replaced with RCU in the ende :) I'd like to do the upstreaming or replacing. Thanks. Zhe > > Thanks. > > Sebastian >