Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2993826imu; Sun, 11 Nov 2018 05:33:26 -0800 (PST) X-Google-Smtp-Source: AJdET5fdqS6LB0gW3atJND/9zKn7daEgWwwrEm934QOSRwprVKn9q/Ue8RFC0ZYjJC1Vf0lmMY5a X-Received: by 2002:a17:902:404:: with SMTP id 4-v6mr16549255ple.331.1541943206420; Sun, 11 Nov 2018 05:33:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541943206; cv=none; d=google.com; s=arc-20160816; b=gUpYR7EX2C0KCvwrb7WBsOeEXqen+f2dz8pgf31siabWYrvA5csKsDtxdzDprRj8i8 7R6wfwYtm9Q8KqDTglb9EdkeC8z5w+YqMdH3TPSnA4HMAlaQ54/gGg8e2ICyTh4WAY0I zD/Q878+TkN50NDi/5wjhe7CGareipyjkoq5M+jU3KYwSXVs+nkAqTWHNL18iL0UOefG 5ooEpjAKoN4l9jHs9rWkPufkroIF44ElI0EVUL6T2VRQg/3vTcHl+lPACBtcTeiYy16N 7yuoyMp6G12E6moDKkLK1GQ5xD39UXhjTRuCjOF4gC2qEWEAVcoWlr44/xJEc6g1819i /N3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=B0pJEbeEAP14hcJGliN/6CfdDPrk4mJVLSaLQ4w+UQ8=; b=a24ns/GbZdqYiHY3ymtX86MerCjCkO3k6S4/MBmtPJTx19c9AKr/zqLkpL5/+93of6 vXSmEFncD6LG7CzwV+XSodX3MZWWJp6dSRUswSZjreof9gEIJrE90/O4y46Cpp0Cp8HP WuopjHvFH4Y+ARmiAcneKU9tnbqocAwljNCaPDAVBHcrrIdnoCPyOGrDbLgEDYMn+LWf TYyLCTbrLKuckgkmPcvbTQYmhGFDwHB2lA/x3G/RLqlhGD9o5JkFnpQHIEZm83BbPLkB 1I0m9lSe0XMSHjtUPEkQU3Fw/ixInFjkWkLAjVTLIBbZOMHo94r7Y5sgS2sICObjkKGZ ymAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=q6+vcbdf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z136si12236615pgz.28.2018.11.11.05.33.09; Sun, 11 Nov 2018 05:33:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=q6+vcbdf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728438AbeKKXVQ (ORCPT + 99 others); Sun, 11 Nov 2018 18:21:16 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:38826 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728354AbeKKXVP (ORCPT ); Sun, 11 Nov 2018 18:21:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; 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:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=B0pJEbeEAP14hcJGliN/6CfdDPrk4mJVLSaLQ4w+UQ8=; b=q6+vcbdftkW5rRPX9N43hqKByK /51KwdKR10BVjlrXsI8QetQqas9/dwIFfzRGmvZRQfdAqEKg30e5KpdA3qkVnbNkIqTB1yF7alUQ/ 5n3dt7ned7TboGGFkDxO2QaJTbMfOhuMd4mbpznXec6XaigLhDVtEUIt3VlPyVQHBje+gIl6WXJrn ur/qB6MblKcKS37kliDg27vmzAsbeCkLo2Xq3YSCPqRGx3lsrHr+XaefNn2+E2uXJuRIJqKv/ykDS qKHQ7iNpoFRJ0d/KlP3nskttwcO9JfuuE3oHU6+7v3F0y/v3Am1yWVyKsleB2VUKJLEd3VmhPJRb7 /TgIjmhg==; Received: from 089144211136.atnat0020.highway.a1.net ([89.144.211.136] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gLpqu-0007aA-VR; Sun, 11 Nov 2018 13:32:37 +0000 From: Christoph Hellwig To: axboe@kernel.dk, martin.petersen@oracle.com, ooo@electrozaur.com Cc: Johannes Thumshirn , Benjamin Block , linux-scsi@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/8] block: remove bidi support Date: Sun, 11 Nov 2018 14:32:11 +0100 Message-Id: <20181111133211.13926-9-hch@lst.de> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111133211.13926-1-hch@lst.de> References: <20181111133211.13926-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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Unused now, and another field in struct request bites the dust. Signed-off-by: Christoph Hellwig --- block/blk-mq-debugfs.c | 1 - block/blk-mq.c | 3 --- include/linux/blkdev.h | 6 ------ 3 files changed, 10 deletions(-) diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index f021f4817b80..82f5e836fe30 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -115,7 +115,6 @@ static const char *const blk_queue_flag_name[] = { QUEUE_FLAG_NAME(STOPPED), QUEUE_FLAG_NAME(DYING), QUEUE_FLAG_NAME(BYPASS), - QUEUE_FLAG_NAME(BIDI), QUEUE_FLAG_NAME(NOMERGES), QUEUE_FLAG_NAME(SAME_COMP), QUEUE_FLAG_NAME(FAIL_IO), diff --git a/block/blk-mq.c b/block/blk-mq.c index c1bb0c0b2ad8..95c858b9309e 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -330,7 +330,6 @@ static struct request *blk_mq_rq_ctx_init(struct blk_mq_alloc_data *data, rq->end_io = NULL; rq->end_io_data = NULL; - rq->next_rq = NULL; data->ctx->rq_dispatched[op_is_sync(op)]++; refcount_set(&rq->ref, 1); @@ -537,8 +536,6 @@ inline void __blk_mq_end_request(struct request *rq, blk_status_t error) rq_qos_done(rq->q, rq); rq->end_io(rq, error); } else { - if (unlikely(blk_bidi_rq(rq))) - blk_mq_free_request(rq->next_rq); blk_mq_free_request(rq); } } diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index adafeb1e0c2b..944157e78f06 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -236,9 +236,6 @@ struct request { */ rq_end_io_fn *end_io; void *end_io_data; - - /* for bidi */ - struct request *next_rq; }; static inline bool blk_op_is_scsi(unsigned int op) @@ -588,7 +585,6 @@ struct request_queue { #define QUEUE_FLAG_STOPPED 1 /* queue is stopped */ #define QUEUE_FLAG_DYING 2 /* queue being torn down */ #define QUEUE_FLAG_BYPASS 3 /* act as dumb FIFO queue */ -#define QUEUE_FLAG_BIDI 4 /* queue supports bidi requests */ #define QUEUE_FLAG_NOMERGES 5 /* disable merge attempts */ #define QUEUE_FLAG_SAME_COMP 6 /* complete on same CPU-group */ #define QUEUE_FLAG_FAIL_IO 7 /* fake timeout */ @@ -663,8 +659,6 @@ static inline bool blk_account_rq(struct request *rq) return (rq->rq_flags & RQF_STARTED) && !blk_rq_is_passthrough(rq); } -#define blk_bidi_rq(rq) ((rq)->next_rq != NULL) - #define list_entry_rq(ptr) list_entry((ptr), struct request, queuelist) #define rq_data_dir(rq) (op_is_write(req_op(rq)) ? WRITE : READ) -- 2.19.1