From patchwork Thu Oct 25 21:10:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 10656501 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E03BB1751 for ; Thu, 25 Oct 2018 21:10:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D59852C648 for ; Thu, 25 Oct 2018 21:10:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C9DCB2C650; Thu, 25 Oct 2018 21:10:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79F8D2C648 for ; Thu, 25 Oct 2018 21:10:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726291AbeJZFpP (ORCPT ); Fri, 26 Oct 2018 01:45:15 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:55768 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726408AbeJZFpP (ORCPT ); Fri, 26 Oct 2018 01:45:15 -0400 Received: by mail-it1-f195.google.com with SMTP id c23-v6so3333677itd.5 for ; Thu, 25 Oct 2018 14:10:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OiZLe7tP/Uk7mFsJZqwEAkQSAHOIdOZe/4Id+T33smY=; b=at6I+1P21/w0q11u4BPrJEa/wbf3FG1ism8SGP5pyzDhbx4pno6sFFCGMjbPLuRi5F E30fzA5lVl13GjqJ5FdXOFBojH8Vnjtjl2DmeZi1ywEpqfvB3tr4fZG1oEUz2g2NSa9i qqB9Xvj9f6Zmlk+TVI+MSi2ofi134Aww4vMes3K9MoLEPlw0UBmZDVVoDL29pcLfFHeB ruE8z5Grs/AQL5phNmA06n04Podif+/EFDZqx5h8QvvgIbrOTU8p1vFcs/iuYuFsB9BH TcTB01bLfptSGjBgmdlkkBoeULF2bePczi6MhsRv7/hEUHZg3N93F4ezi6DlbOoTYT5x Za9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OiZLe7tP/Uk7mFsJZqwEAkQSAHOIdOZe/4Id+T33smY=; b=apt0scf+vhRdYDaTHroIpc8B/hRqEXK/7Cj7igvRkc5cUHXfpW20DM8ncNwxzFzYgt ivapF7AUD6teDEb2G0yKKx9y4Oki5gfh6N52asXpMZFfHMKP564ZeCpCFpLibVulCf/1 uIIzlWddjTY2z6Dm7eBx3ZHtuWzSAErZ03hmtgBIRT6pkPboSbYTaiJxgSUfp053LFVA LiPVKhFOONxQXbieF/HDtSt3QA2ZXOWf49UQl1chIH3+GuiWpUXnrTfxmFKmw/OLVKtc GMQrfd5vxQN7rQeVC4LgFPHj+BhaZYqo7IRdZ5tb7VD+BuyEXpPIEyFL+zn4c8N9Gkqb bqPA== X-Gm-Message-State: AGRZ1gIuxLvLpkxAXweAhpIz6SbuS1pSSNoQGOsWflyV5y/tXq9+gRy2 uAjMbKax/Z6OQ34vjOyoKWxNPUw1/iI= X-Google-Smtp-Source: AJdET5foTCV9ceeNxK3jh8tB1w+Os4AzXQM+DczFWguVcgbzwmeaNH1CX5KUIwXPOdmCN8K+zOOA4A== X-Received: by 2002:a24:8dc6:: with SMTP id w189-v6mr2090893itd.19.1540501856463; Thu, 25 Oct 2018 14:10:56 -0700 (PDT) Received: from localhost.localdomain ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id e65-v6sm3446375ioa.76.2018.10.25.14.10.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Oct 2018 14:10:55 -0700 (PDT) From: Jens Axboe To: linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org Cc: Jens Axboe Subject: [PATCH 06/28] blk-mq: remove the request_list usage Date: Thu, 25 Oct 2018 15:10:17 -0600 Message-Id: <20181025211039.11559-7-axboe@kernel.dk> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025211039.11559-1-axboe@kernel.dk> References: <20181025211039.11559-1-axboe@kernel.dk> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We don't do anything with it, that's just the legacy path. Signed-off-by: Jens Axboe Reviewed-by: Hannes Reinecke --- block/blk-mq.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 3f91c6e5b17a..4c82dc44d4d8 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -510,9 +510,6 @@ void blk_mq_free_request(struct request *rq) rq_qos_done(q, rq); - if (blk_rq_rl(rq)) - blk_put_rl(blk_rq_rl(rq)); - WRITE_ONCE(rq->state, MQ_RQ_IDLE); if (refcount_dec_and_test(&rq->ref)) __blk_mq_free_request(rq); @@ -1675,8 +1672,6 @@ static void blk_mq_bio_to_request(struct request *rq, struct bio *bio) { blk_init_request_from_bio(rq, bio); - blk_rq_set_rl(rq, blk_get_rl(rq->q, bio)); - blk_account_io_start(rq, true); }