From mboxrd@z Thu Jan 1 00:00:00 1970 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 8F6EBC77B71 for ; Thu, 13 Apr 2023 06:41:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229659AbjDMGlK (ORCPT ); Thu, 13 Apr 2023 02:41:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbjDMGlI (ORCPT ); Thu, 13 Apr 2023 02:41:08 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9ECE18694 for ; Wed, 12 Apr 2023 23:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=VFlLCL2vGtFislVIVrjhYDDJyOw1WZfLIM/4djAaBco=; b=dUdS+uUyqxDsLK821QySDKsYyq jeP/haKGA7epxw8jPehOoONenpKzYX7rdPghrOE5TpQgw4eODGT/Kt7vHuHjDdAgkdfY7Uwr8ZW7X /Hdqctlp4KL/R3us6lAIbMJuLqd1y/C6xx5l3CmnqC8/IwI4kbq2d2xjQlylC3acUiM9abQ0NuzfP dwoTWL8+KxQQqm5+Iro5ltYSjfVhrDivpgeXIJt55icwURfAP5KwFlWLJINfE+jXqIPjhC/hVyBqU qR/jSxMT6XBjaanavO5bePyiRITF2Nh0Kr/ZROnKvxmBJ0YARHy/PY+WdbiP2Hnev2jVzjvEJ3Bsm X/J+Uy1g==; Received: from [2001:4bb8:192:2d6c:85e:8df8:d35f:4448] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1pmqdh-005BR7-2O; Thu, 13 Apr 2023 06:41:02 +0000 From: Christoph Hellwig To: Jens Axboe Cc: Bart Van Assche , Damien Le Moal , linux-block@vger.kernel.org Subject: [PATCH 01/20] blk-mq: don't plug for head insertions in blk_execute_rq_nowait Date: Thu, 13 Apr 2023 08:40:38 +0200 Message-Id: <20230413064057.707578-2-hch@lst.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230413064057.707578-1-hch@lst.de> References: <20230413064057.707578-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Plugs never insert at head, so don't plug for head insertions. Fixes: 1c2d2fff6dc0 ("block: wire-up support for passthrough plugging") Signed-off-by: Christoph Hellwig Reviewed-by: Bart Van Assche Reviewed-by: Damien Le Moal --- block/blk-mq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 52f8e0099c7f4b..7908d19f140815 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1299,7 +1299,7 @@ void blk_execute_rq_nowait(struct request *rq, bool at_head) * device, directly accessing the plug instead of using blk_mq_plug() * should not have any consequences. */ - if (current->plug) + if (current->plug && !at_head) blk_add_rq_to_plug(current->plug, rq); else blk_mq_sched_insert_request(rq, at_head, true, false); -- 2.39.2