Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EAC20C4332F for ; Mon, 20 Dec 2021 19:38:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230180AbhLTTig (ORCPT ); Mon, 20 Dec 2021 14:38:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229727AbhLTTi0 (ORCPT ); Mon, 20 Dec 2021 14:38:26 -0500 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58764C061574 for ; Mon, 20 Dec 2021 11:38:24 -0800 (PST) Received: by mail-io1-xd2a.google.com with SMTP id p65so14806505iof.3 for ; Mon, 20 Dec 2021 11:38:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=EkArDJeCYv0Njtdx4aTXVLgHs6oe3qECOtCPjjJ9u9k=; b=ERlIz8DWPxRf4Ov6ICyoDn3BYJsHG/T+9YGqe6l6lFF1WrwKn4AyujKupEUzZ3VwRS 34Tko/VtM56X5H+m/o5Epcyt6wyxSCjtrz3ckDftMVITdRkFwYL2e2DvKtu0aHUbFfij pcsyOkLasOS2tbQt8fEWCIGkJ37SfNh6QRlMHMfa1/PE1uu3qKUMy3KJO58wVx2xEetM 51JqbVk0pXWWCo8QeFjJCkSEk4W6H2RTqEj0qLH10KeRwA3/YxO46IQ0EAj3EbhLVgsy JVRk2TrnOuK83a0LVKUTlpZF3uvZJIr6r5NmmEX+hZkCQUY/14eozz85PsPu69jnpQ+Y 7TKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=EkArDJeCYv0Njtdx4aTXVLgHs6oe3qECOtCPjjJ9u9k=; b=0ENIPdeUGaNeBZWvOWwrvQI+7DWSlca2aeJ2bViTNtgUMitTgpk6nUUhipf8CaemUG Fnnp41RYvy12Y6n/rAOWvKkWrOVoVkug/eBHt0TlDlazSSgljRTvsN3jLpsOFP6WmadM 7wH1xP2+SYEDNnzwE9Qnhfy+nVvl1sDtTjLzHs8JvE4iyzlUZx7GB/uydd/c6HEXy5D7 AtQ0/qG7E8fQV3htjMhI15wSGUEVg32KbzKbOPGsJui+gRHgY19KHg01/taFs63yr7CN ad2IZfl2LpSVPXaiaFCC4nthInwI0BMqsj/g9AOLutTrS883aSndp0trxluZd+nN3j0P 8bxQ== X-Gm-Message-State: AOAM531fDm8fmN7qHMkoKkMkk8XCjm/uASFIogrZx8TILcuyy3Qj+evu wr1TTSh7XiPkjHmqkxzwQS/8Ig== X-Google-Smtp-Source: ABdhPJwAZ5teUso6Vx4YqlHG/mdWZAGrZc46rnxhyMCRmWTX0vVTebmuoPw0Dn6fKiJvKo/RQZjx/w== X-Received: by 2002:a02:c9c8:: with SMTP id c8mr5173155jap.175.1640029103720; Mon, 20 Dec 2021 11:38:23 -0800 (PST) Received: from [192.168.1.30] ([207.135.234.126]) by smtp.gmail.com with ESMTPSA id v23sm9319460ioj.4.2021.12.20.11.38.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Dec 2021 11:38:23 -0800 (PST) Subject: Re: [PATCH v5 1/1] blktrace: switch trace spinlock to a raw spinlock To: Wander Lairson Costa , linux-kernel@vger.kernel.org, Steven Rostedt , Ingo Molnar , "open list:BLOCK LAYER" Cc: Thomas Gleixner , Sebastian Andrzej Siewior References: <20211220192827.38297-1-wander@redhat.com> From: Jens Axboe Message-ID: <8340efc7-f922-fb8c-772c-de72cefe3470@kernel.dk> Date: Mon, 20 Dec 2021 12:38:22 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20211220192827.38297-1-wander@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/20/21 12:28 PM, Wander Lairson Costa wrote: > The running_trace_lock protects running_trace_list and is acquired > within the tracepoint which implies disabled preemption. The spinlock_t > typed lock can not be acquired with disabled preemption on PREEMPT_RT > because it becomes a sleeping lock. > The runtime of the tracepoint depends on the number of entries in > running_trace_list and has no limit. The blk-tracer is considered debug > code and higher latencies here are okay. You didn't put a changelog in here. Was this one actually compiled? Was it runtime tested? -- Jens Axboe