Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2204173iof; Tue, 7 Jun 2022 23:07:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8Rpnd7L7EBeQOT2KXOOk0jNzciafz2Vixe6T4aR1LE6PREC2ESVynh21BcBdKd/p8oSys X-Received: by 2002:a05:6a00:15c9:b0:51c:178:ac7e with SMTP id o9-20020a056a0015c900b0051c0178ac7emr18317751pfu.64.1654668467726; Tue, 07 Jun 2022 23:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654668467; cv=none; d=google.com; s=arc-20160816; b=kNOF/3idPuPnlNCGrcarhiwwZLaTk+wekWZKv8hqCoU1XweeNio8q6Bvg1saSxOUDp qnRP5C7u1zS30+3EBr9vaH1uQH3VJj9y3BZiSpe8c3MlXD6Ao+i4Gn3VmOFJ0cXam7bM netnq8OZwtt54VDM5IwW84Ca9Ce4BnfFc35zC1+/m3nx2RCTRW2Y/cwodeESuWY/e7nC X0SDwY81g2qQcWtdD6ufBXtIsu4pDqOuvYZF3ftJska6bcyPxk2fDznhNOLr6mGevHUs 9hh1ZYTYxgnQm0wUkKnT71wBDMuFHGhls6diBXA/4mMzhQJGtsAZxtSGSactB6UUz/at 7wlg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=E+tIq2x9WUmzIagZmj3BtUuTGyoBpCsLnWspQZHmnEI=; b=CD69Y7sYOYscHZr9ZtnHU+b5EF4Wqy5bKOX39qq4JYunj4A5bSsUU94YDJUD8ZDd2A m5tnAKdpaMTtPWY2kEQvrLViZBq3Np5QduMNXlM1gGecj7SzaBNgyvIeYdUXfMOFDiUw l74vNN0ZtBT/Lt3z5NpunvhPVt54wJ5uhGGT9NR7uYi8nYGOJoneRVGteKdzQ3rAemMx EQaKafaz+eZ5XZVY5/gwFqG6JMz90jWfIzRTlEPfhXpFd8Q/ZXQHgWXS3c4XAidgXRUP 6FYcJ4kyFV6algtIUXbT3QZhGb9TsAbbM7t1rAcFYsXfCF4thVbRD1gEeu17Go17t3vp DO4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="nWBWwtM/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y186-20020a6364c3000000b003fc5c9eed14si27548899pgb.650.2022.06.07.23.07.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 23:07:47 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="nWBWwtM/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ED3922B345E; Tue, 7 Jun 2022 22:31:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358291AbiFHBe3 (ORCPT + 99 others); Tue, 7 Jun 2022 21:34:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384712AbiFGWQE (ORCPT ); Tue, 7 Jun 2022 18:16:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F149261285; Tue, 7 Jun 2022 12:19:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3B25561937; Tue, 7 Jun 2022 19:19:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 483C2C385A2; Tue, 7 Jun 2022 19:19:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629546; bh=u4cVDWE9ghJnWZVgnl39r4y8K2fhJNdkdYHrYy7ygyI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nWBWwtM/NW10Lwhog8KB/ECDWlIxmU84zPUoVhZpAJApzVemiJSlWgdfTGRTRp3em ATfM9w8NkdnifS8TkEd8WmbwrR8XzWRdptRjQOzX6e0FsA9Fl2WNgKOZwkcNw9T3Am BCXEUScsve4NQQpfiw8d9tIyntJ8QcS7mD/hbK4U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "yukuai (C)" , Jan Kara , Christoph Hellwig , Jens Axboe Subject: [PATCH 5.18 731/879] bfq: Drop pointless unlock-lock pair Date: Tue, 7 Jun 2022 19:04:09 +0200 Message-Id: <20220607165024.074983777@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jan Kara commit fc84e1f941b91221092da5b3102ec82da24c5673 upstream. In bfq_insert_request() we unlock bfqd->lock only to call trace_block_rq_insert() and then lock bfqd->lock again. This is really pointless since tracing is disabled if we really care about performance and even if the tracepoint is enabled, it is a quick call. CC: stable@vger.kernel.org Tested-by: "yukuai (C)" Signed-off-by: Jan Kara Reviewed-by: Christoph Hellwig Link: https://lore.kernel.org/r/20220401102752.8599-5-jack@suse.cz Signed-off-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman --- block/bfq-iosched.c | 3 --- 1 file changed, 3 deletions(-) --- a/block/bfq-iosched.c +++ b/block/bfq-iosched.c @@ -6154,11 +6154,8 @@ static void bfq_insert_request(struct bl return; } - spin_unlock_irq(&bfqd->lock); - trace_block_rq_insert(rq); - spin_lock_irq(&bfqd->lock); bfqq = bfq_init_rq(rq); if (!bfqq || at_head) { if (at_head)