Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2162506ioo; Mon, 23 May 2022 11:34:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOL+TSOFgFtC/Ox3jG9Gfaei44jq6g/F+4QB1aZr5w8HKGQ/SBKQOeKvljMBBQVjhHhJZZ X-Received: by 2002:a05:6a00:cc5:b0:518:a5e6:731e with SMTP id b5-20020a056a000cc500b00518a5e6731emr5357507pfv.19.1653330861288; Mon, 23 May 2022 11:34:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653330861; cv=none; d=google.com; s=arc-20160816; b=dQCYLkqYokSkNaLfvWxProheOgHRv+9ZpGLUPw0q4cg6kdCYODvb6tY2ZYxqNFdY1z kLhtMCppuaYKkYO+xdgZXx4+WBp5Td+JDAh01/9fCP9Jm5KCxIvsysM4JmD/FIVG6iUe gN0NJm0dhp74nXcIaUqv6OjuQIzhonci2fQdMB4hSLUCr/MK/D/y2Ch1IS8gaOEugVdy DBzmKsI6RVodllNZAAG856XjygffwCQhsLimn/prEp7nwgX9dlukO3fghaGt4UHH8d80 Ljk/9PKQX5BD3nBybyZdAagjXnVgX1gRr4xBqDGaiZ0JedDY/+sQSETK1NQMT8LvH31T YbeQ== 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=OscTbKZSEj654fBDejoKjvsHl73uijrhTDutj4hOT4o=; b=suHjoegUYphYyXMXm4VSvkH7R8jCM5Jj7qEbFYS3lFZ/0Aibpfo1X0RG6K7X0mxlb9 NP8hM6Nw4xRrUaOJMR8TsuzD3252IL0utX7ZH+jmq4wX7QiLQXRVrFoO5/AXiKkP8ZYI fv+Rh4+WAnWbEobmX4LcMsEN2sogqdLnf3zjTg/a02WK9g1B9iLR0TU53mrmDmlpYeDk A823/Nc4VAY910g7CaOg3vLqXN8CjvAQ9xMHlBZfcrXRUk2WKlY/u+dD+IyJNNjHzvIo eGH8sAj4A8zvrhAv9TKhSQc7LNdrWcELmEAVEFk2Li066FlcoVZmQJmzhMQzVlQye224 niKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XI+BuiSc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t7-20020a632247000000b003c5e838ffefsi10736120pgm.323.2022.05.23.11.34.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 11:34:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XI+BuiSc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 481E85E148; Mon, 23 May 2022 11:32:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242969AbiEWSAg (ORCPT + 99 others); Mon, 23 May 2022 14:00:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241103AbiEWRcl (ORCPT ); Mon, 23 May 2022 13:32:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B0AB79825; Mon, 23 May 2022 10:27:28 -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 523B860919; Mon, 23 May 2022 17:27:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50623C385A9; Mon, 23 May 2022 17:27:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1653326847; bh=z9KitDqnllZPX+NUcFczaCCn/qxRFGh1THplW/YBoOY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XI+BuiScBJwhH+5+JAPCFdfTl+uFr0mLanvAPGdluYzfmHwi7WiSvXBlZqsj2KbE+ 0YePvuLudonDVrZpJnhC6cXtpeHOipIX48FLKF5AnFYjx6ogfG6qvNrBXTVwrYwy9P /JK9R6AuE5L80pchYV+hokykgh87RaQ5po5QhpWE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christoph Hellwig , Ming Lei , Damien Le Moal , Bart Van Assche , Jens Axboe , Sasha Levin Subject: [PATCH 5.17 078/158] block/mq-deadline: Set the fifo_time member also if inserting at head Date: Mon, 23 May 2022 19:03:55 +0200 Message-Id: <20220523165843.956480333@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220523165830.581652127@linuxfoundation.org> References: <20220523165830.581652127@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=-2.6 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: Bart Van Assche [ Upstream commit 725f22a1477c9c15aa67ad3af96fe28ec4fe72d2 ] Before commit 322cff70d46c the fifo_time member of requests on a dispatch list was not used. Commit 322cff70d46c introduces code that reads the fifo_time member of requests on dispatch lists. Hence this patch that sets the fifo_time member when adding a request to a dispatch list. Cc: Christoph Hellwig Cc: Ming Lei Cc: Damien Le Moal Fixes: 322cff70d46c ("block/mq-deadline: Prioritize high-priority requests") Signed-off-by: Bart Van Assche Link: https://lore.kernel.org/r/20220513171307.32564-1-bvanassche@acm.org Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- block/mq-deadline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/mq-deadline.c b/block/mq-deadline.c index 3ed5eaf3446a..6ed602b2f80a 100644 --- a/block/mq-deadline.c +++ b/block/mq-deadline.c @@ -742,6 +742,7 @@ static void dd_insert_request(struct blk_mq_hw_ctx *hctx, struct request *rq, if (at_head) { list_add(&rq->queuelist, &per_prio->dispatch); + rq->fifo_time = jiffies; } else { deadline_add_rq_rb(per_prio, rq); -- 2.35.1