Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp441741iog; Mon, 13 Jun 2022 06:05:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwP/MF3foUPnler7oG5n5TaBWnSgXlIkrwb8j9oyXhDsDx4RgPED/63xDRZRE1YISJd4sPp X-Received: by 2002:a17:90b:48cf:b0:1e8:9438:ce13 with SMTP id li15-20020a17090b48cf00b001e89438ce13mr15681161pjb.235.1655125396455; Mon, 13 Jun 2022 06:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655125396; cv=none; d=google.com; s=arc-20160816; b=LDbhfoS1R8BPzcDokYnCm4lX/xv5d4Wh+MLGbdKYx4irsNw8m7KkI38CBPoPdrz+z3 +YEHW2ef0q/VVkJH2kfXkfZ4CcYa9kFi0Ydldl/s+6aPMG5Pj0ugcG55ZYzGyjF6lK1D b6ccyjZ8FmKGYzqTO4rwOErU1vxQLvt2kKTuajV+Nkdw2QuoQrmBCOcSYpGsPaFo2+26 QX8mmmbzSR/grwPCvMyX9azYT5ap6AlO+FfnSG2J1hB2jeEPZE7cCpesd0ZtGTuubMDx T1R4ZVciMaJNa0M4MYSgnFz3aDUMYy+shhs4/Twoai46jy12rlKqeyk4fqiucom4PMgH VoDA== 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=QiwP0Kq2w9yYgbP/ltdJDrkv7iiKTj5xQqGlwmZWye0=; b=Hzq8hn04zgun3CHHvynmdaXXM8Y7PgQV8L38borFNWX/Qeg/WniQaHvigZHm/nx5vS G/MhGZD3gRzU0KS4eM8zVN8CDkEDoqyAuyhNdhfOGaAKy3JgXEnbeLY1Md7Jkdel+T8r C5cFo7Es7EuJOad0RO4P9DrBUG3VUbL7SY1s8Bt4JSH95F0o88WsQSe904fyXeLVeGfz E7fbM9cu0H9iy+p9HoO0sSBv7X2IxO73hn2Q2hfchLM+RoDwFQFrIY0M2fNB5slbm+AT MAS7CY/VTnsEULqgWjaNZAxLRPmIlLXPjMHHBZ2By4Xo63t0rMp46B4SGHGrbEibWQ+2 qsOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JM4BY4f+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x137-20020a63318f000000b003fcc8b0443csi10934469pgx.234.2022.06.13.06.03.03; Mon, 13 Jun 2022 06:03:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JM4BY4f+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354434AbiFMLfQ (ORCPT + 99 others); Mon, 13 Jun 2022 07:35:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354428AbiFML33 (ORCPT ); Mon, 13 Jun 2022 07:29:29 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 101FDD114; Mon, 13 Jun 2022 03:44:21 -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 ams.source.kernel.org (Postfix) with ESMTPS id AE165B80D3A; Mon, 13 Jun 2022 10:44:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12DE5C34114; Mon, 13 Jun 2022 10:44:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655117058; bh=ks8AUTzv45BBMdK0AfXxP1LnKPwk7Pdv4+o0tAPD4VI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JM4BY4f+iV/cZVKJ6xg+mlA6uk0D4CUxkWr9yPyb7lejs85I2rojiCNdUhlRaLqjC 8QDn1FG54uojmrvG+KqvpxlPLt6+vLldt1Bu9yC3XYp7fmoRvBHok06IZFMAfYfi+w 61e8Wkk+3IMI3gxw0EmPfylK2HE6zff6TsPgB+vw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , "yukuai (C)" , Jan Kara , Christoph Hellwig , Jens Axboe Subject: [PATCH 5.4 275/411] bfq: Drop pointless unlock-lock pair Date: Mon, 13 Jun 2022 12:09:08 +0200 Message-Id: <20220613094937.003901965@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094928.482772422@linuxfoundation.org> References: <20220613094928.482772422@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=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 @@ -5529,11 +5529,8 @@ static void bfq_insert_request(struct bl return; } - spin_unlock_irq(&bfqd->lock); - blk_mq_sched_request_inserted(rq); - spin_lock_irq(&bfqd->lock); bfqq = bfq_init_rq(rq); if (!bfqq || at_head || blk_rq_is_passthrough(rq)) { if (at_head)