Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp209828pxb; Tue, 19 Oct 2021 00:55:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu2zroMK0jw8WtLH0pQ8GAVDXcAf15d81lkWuqi6ntXsAq897cA0kHrSIPonvIFy9pCN61 X-Received: by 2002:a17:903:2451:b0:13e:f1ef:d819 with SMTP id l17-20020a170903245100b0013ef1efd819mr32051795pls.85.1634630105281; Tue, 19 Oct 2021 00:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634630105; cv=none; d=google.com; s=arc-20160816; b=xukA9lM52fC8wM88MJXaH5CjG+4xweoA800zQ6rtDLr4x8QS3ZIvOYP2aiqcrw+UOL YyXfkNldyLLGCdFpEhT1JaUcZMy+dx4DzEJ/1958kVy3RvKI5ESEVCYgp9wEiUbtawkM ExfDOCNcjE1WwHNP9V1i1VI8QPdAsSAtSQsbjn3MywxKDdmSVrqmfrtZa68B+E+JnxVY LZr8w4FJiRxX9L6xxpnlCm7PE+wFkrUEsJcVnFxMUFJh34EVFI3uIWw+GjbJ4iWBefg9 g4vrpmqSz9dLAmlrgLAtZOcMCU+LCx8IS+42Ifx2LVjmz2RtOK+fo81jrSYzHxa9YZej sm2w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zwsoBId8IcnSgwMOFnvrbUriZK7O2i5DeoGRxyH3eME=; b=NRqJuYXbBckTD2cGVT7Si2m+5rYWV3YMIYXUedCtaaCx1t1S7J0uoAHiUl4Njb1rlt QCkLJHeBGe8dWIAAC9DdF2J+x0R6dvuUEFY+BB3EJGd3UiGHj9Nu/kIR/hoDuSA0invP Ll6Mm4qKat5naZ4dYPF0veYVqXDw+6Ae1gGuNtiCARjv0Lbcxv9q2KPJKalvLtY7u84O 3Aw2AlZqIjLnJEcrjsoKvQxIqmpXifmftS4puHxJiFBCtiyXsfVBIy7EUn4wfv8O/6bK /p8ntPbS9RDGZ4sx65Y43enw6hICrag9sQWrcp7/YawBTAs+WXRZg1q3Cnz2f6kesvEr nITA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=dvFnBpMj; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c140si21211656pfb.42.2021.10.19.00.54.50; Tue, 19 Oct 2021 00:55:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=dvFnBpMj; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234275AbhJSH4v (ORCPT + 99 others); Tue, 19 Oct 2021 03:56:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234594AbhJSH4u (ORCPT ); Tue, 19 Oct 2021 03:56:50 -0400 Received: from bombadil.infradead.org (unknown [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 675CFC06161C; Tue, 19 Oct 2021 00:54:38 -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=zwsoBId8IcnSgwMOFnvrbUriZK7O2i5DeoGRxyH3eME=; b=dvFnBpMjPHZhbrQJ4nOP29ex+P vbzm6itDON3P7R73QZ6m9rN5Zyf7y/7e35NU8Np0oim0ugRhqqFXXyQC3ILP1NI+UG5vUoevD3+V5 7Z3iOXkOElIO+ExsKbY36heqf5qeXm0u6ma3nHsj7oViRyLU6nCmf9gbUfDcZA4GPbYfI7Qpcfydp yHOqZ84RL5v3jpOdxWu79dpVf9v9JOatJet+tbov8Z7VskuaBFZg+EWByf20b8pEi4D1X51UHbOOi jDghPrx1yIlmsi8/YIajvbwIEdidiUGxGcnb2kiwIpHNO5yORRagScouxBl9AtkCs+fHB6gRNaHd+ p0NX+jpw==; Received: from [2001:4bb8:180:8777:c70:4a89:bc61:2] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mcjxE-000TB5-8e; Tue, 19 Oct 2021 07:54:36 +0000 From: Christoph Hellwig To: Jens Axboe , "Martin K. Petersen" Cc: "J. Bruce Fields" , Chuck Lever , linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-nfs@vger.kernel.org, Hannes Reinecke Subject: [PATCH 6/7] block: remove the initialize_rq_fn blk_mq_ops method Date: Tue, 19 Oct 2021 09:54:17 +0200 Message-Id: <20211019075418.2332481-7-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211019075418.2332481-1-hch@lst.de> References: <20211019075418.2332481-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-nfs@vger.kernel.org Entirely unused now. Signed-off-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- block/blk-core.c | 9 +-------- include/linux/blk-mq.h | 5 ----- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/block/blk-core.c b/block/blk-core.c index d0c2e11411d03..52a460d0aeb2a 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -606,16 +606,9 @@ EXPORT_SYMBOL(blk_get_queue); struct request *blk_get_request(struct request_queue *q, unsigned int op, blk_mq_req_flags_t flags) { - struct request *req; - WARN_ON_ONCE(op & REQ_NOWAIT); WARN_ON_ONCE(flags & ~(BLK_MQ_REQ_NOWAIT | BLK_MQ_REQ_PM)); - - req = blk_mq_alloc_request(q, op, flags); - if (!IS_ERR(req) && q->mq_ops->initialize_rq_fn) - q->mq_ops->initialize_rq_fn(req); - - return req; + return blk_mq_alloc_request(q, op, flags); } EXPORT_SYMBOL(blk_get_request); diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index 656fe34bdb6cd..649be3f21d740 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -565,11 +565,6 @@ struct blk_mq_ops { void (*exit_request)(struct blk_mq_tag_set *set, struct request *, unsigned int); - /** - * @initialize_rq_fn: Called from inside blk_get_request(). - */ - void (*initialize_rq_fn)(struct request *rq); - /** * @cleanup_rq: Called before freeing one request which isn't completed * yet, and usually for freeing the driver private data. -- 2.30.2