From patchwork Mon Apr 22 20:32:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Henrique Cerri X-Patchwork-Id: 1088892 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44nytl3SD3z9s7T; Tue, 23 Apr 2019 06:32:31 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1hIfc3-0006Mz-VZ; Mon, 22 Apr 2019 20:32:27 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1hIfc3-0006Me-4k for kernel-team@lists.ubuntu.com; Mon, 22 Apr 2019 20:32:27 +0000 Received: from mail-qk1-f199.google.com ([209.85.222.199]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1hIfc2-00066P-N1 for kernel-team@lists.ubuntu.com; Mon, 22 Apr 2019 20:32:26 +0000 Received: by mail-qk1-f199.google.com with SMTP id e13so8280424qkl.8 for ; Mon, 22 Apr 2019 13:32:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=p4x0B4wLV+zJkuenFdm8euVwdk3/XZ8bQjcL9E9I31I=; b=mqG36BkIDsu5RxWk4CS8P/WqgiQK/A8UppLCksGCM9nuDcxtRrv0kX2f8MOCyi7JxD 6EPDYQKLeASLG0a5OJ2fX+QlBwffachxTHkb7+C9NSpy4l3tuvB2GXWi0FlfeF6HiMWL v2x3d98Yd41G/LVuJOxhfF91Y6+FDmpEwg/Xqyr7p+k1DeuwwmF2yt2rk1LcfAVR/Fy+ 8aG69F0Q+xAoccbQhOcRi98v+8exG/Al1cjWcRZwbRzfSbqVjEPQ6TtoUogZoW7O1Aw5 HWDQGYEZb8ao6LtOvSQRfK6qey/5ZDiMMy2TJtKoJEyqdd7H4WbTBi8oNrBr5fFOMBSn w/jg== X-Gm-Message-State: APjAAAU5njRZcjlHB/98n6QZgifUpyjolDW6XVz2Olmy/76n8IeFncgu GLqcIoXGSovAgQrmUctQ4PDubCTMTl4IPY8Mc3s1QmA4Sr0iQAkWCNwE5Z5mwV0VMHsLRvLD9PO L+Yn79Iqq4og1ShQq0Ep+hZXYIAcrecRIsR0Rg0yj X-Received: by 2002:ac8:7594:: with SMTP id s20mr16477634qtq.362.1555965145482; Mon, 22 Apr 2019 13:32:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRH8wnvI65aFVtTbJeVr6Swq9PklWboRD1pxsJbwETocJ5sP2WNQgr8dDP2DHkXJvnaPE1kg== X-Received: by 2002:ac8:7594:: with SMTP id s20mr16477614qtq.362.1555965145230; Mon, 22 Apr 2019 13:32:25 -0700 (PDT) Received: from gallifrey.lan ([189.61.202.9]) by smtp.gmail.com with ESMTPSA id m60sm7203300qte.81.2019.04.22.13.32.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Apr 2019 13:32:24 -0700 (PDT) From: Marcelo Henrique Cerri To: kernel-team@lists.ubuntu.com Subject: [c/azure][PATCH] blk-mq: remove the request_list usage Date: Mon, 22 Apr 2019 17:32:18 -0300 Message-Id: <20190422203218.2200-2-marcelo.cerri@canonical.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190422203218.2200-1-marcelo.cerri@canonical.com> References: <20190422203218.2200-1-marcelo.cerri@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Jens Axboe BugLink: http://bugs.launchpad.net/bugs/1819689 We don't do anything with it, that's just the legacy path. Reviewed-by: Hannes Reinecke Tested-by: Ming Lei Reviewed-by: Omar Sandoval Signed-off-by: Jens Axboe (cherry picked from commit 7ac257b862f2cfba3a909d1051499d390cffad6c) Signed-off-by: Marcelo Henrique Cerri Acked-by: Stefan Bader --- block/blk-mq.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 90e8058ae557..76702ea84dd5 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -508,9 +508,6 @@ void blk_mq_free_request(struct request *rq) wbt_done(q->rq_wb, 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); @@ -1626,8 +1623,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); }