Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2152158iof; Tue, 7 Jun 2022 21:30:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSOrIT5P6YYTCbczpWJc8Sbc7vVTLqo2Eyg77DdSOYA0akC11ZxbS2D4A+0ccntxp9XYGx X-Received: by 2002:a63:2686:0:b0:3fc:98b0:a950 with SMTP id m128-20020a632686000000b003fc98b0a950mr29376284pgm.194.1654662615184; Tue, 07 Jun 2022 21:30:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654662615; cv=none; d=google.com; s=arc-20160816; b=qJAGnri/VDOXVm/ebBbOKg+rZIU7RCFukI2fKAbniVM3NqdSM79IDuNFzhxOeUS3ta bD1ZOR6vFx3WoygNQ6INCDaX0U1eXaRdePO25jNURO42qRc+lqQSOXl3v8on0YYlsfR7 zHJAm6GXZSLpBwEBG721PAC/AexzQTSxoKdFS4uFmEqd6LqOxYSOgw0j1j0pfDt/RD60 heV/N6hU6FCz6N+DuOwVnoFl48/AuESA9HE5SnEHeFzyTs7CSh5arUnzFY4WpJoEQ2DS LptalLqp5r3B9LcxEv/EOTHuZq71+te7/9rCuOV5qoFYtC2W6cop1r0xFKsqzx2yG64/ tlVg== 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=CV0oyjO/b9XfsC3IX/P7nS1ucfX8leqWf0m16CrPxKo=; b=pezt9rRGNkglJ3eV5hWEF13O2poCgziotQ1vVk/jO7aqlpWlF3JIbkGxcxl4VypxYn RN/ETRYyjNW0Am2+wCEIZT/ijsJD+3Vh5NUm4H/xATsHGT93nh+ooMg83FR+xhT/L2Z1 znFzMQmARwnNC2keCisM1j6oWJw7/e0BGCsD6G/30q+WHlywOSrqE1PrdlhYG8yj84Jx 4Ncsnk4IiCCfduSj5DzxSFyyBba9W6ShnFyN69l3noeGoeriY4q+RAy9jrAUDPXt3er/ sayoEKQvOD8HkGy498WpJc4SMMqJAwSHk6zfOAACE6UDrzqqY4iI3rjLj1Ib2l9iVLQP 1OvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UPs2km50; 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 u13-20020a170903124d00b00158d6f07b2esi27216758plh.85.2022.06.07.21.30.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:30:15 -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=UPs2km50; 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 4CB273D4604; Tue, 7 Jun 2022 20:58:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350123AbiFGSK2 (ORCPT + 99 others); Tue, 7 Jun 2022 14:10:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349753AbiFGRve (ORCPT ); Tue, 7 Jun 2022 13:51:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BAA113AF3D; Tue, 7 Jun 2022 10:38:51 -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 5C7BC6164A; Tue, 7 Jun 2022 17:38:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63053C34115; Tue, 7 Jun 2022 17:38:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654623505; bh=9OVdoleGkdoG1w/I/9GHVvRNmcXCvndh0qaqcBXBFIY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UPs2km50uJgbiNXc5wVLxaaaeGtkMTdh+zBu4vAMn/wS+GWbFGMmiblpy351AKIuR jZ9eLPUdndILDgRxL3A0Ybr/zp3nXxSusulzaiuEGB3+p7/5NTWFFjTciP0xAEhlk3 MbqQFQ+pXP1TxM+oFQ8kf4nQKtJHNKQOf9BXN8qU= 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.10 442/452] bfq: Drop pointless unlock-lock pair Date: Tue, 7 Jun 2022 19:04:59 +0200 Message-Id: <20220607164921.735922268@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164908.521895282@linuxfoundation.org> References: <20220607164908.521895282@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 @@ -5537,11 +5537,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)