Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp105713ima; Thu, 31 Jan 2019 23:59:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN58V9zf8MEeob/afqJm8UnO132cB0Pm8WLY6jsmJiBw/9qghCsPPJQLWV8yL8rvSUAJURwO X-Received: by 2002:a62:5797:: with SMTP id i23mr25457903pfj.162.1549007960285; Thu, 31 Jan 2019 23:59:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549007960; cv=none; d=google.com; s=arc-20160816; b=ojN4XrOh7P1qbhZWN6OE0p/JcM5mUTXD31LaxPcKZ4xCS7/t2rETCiYjj3X0bf+0WD eT2H+Vcs6sPG5QpD/J508+muiKepLaAxuen8Tw/0+k9spaRn63PoFBdtuPUrhVgJsSiw gwUXDQSdytc0iFQMYO3Gu/UguG7HUV5IkObJM+WIfCoKAjnehWbofWuz3Cltex5+BWu2 97iZM90T7ylg4XwskhN5lljw6f4yq7mrt9HB8wTYS38ene9b24ci27A8tvmUKP4eUwj7 dd1EJFDnNpqqnFofGqPni5n01p3zPvidB869y6wLs2UE48x4uKdOWO71YSk6GLHunrgG S9xg== 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=3tz3dA8YAfgSwTNZlXBMk+Ut75GyD80Dut7IKVEoxWs=; b=mzwcbnrETEhVh767gfZbZ/9OKO3w3xmKTWaK82ByrkQLH+CU0Gp8Z4w8qJ/mGJg9ZQ BVacBNaPCV6D1BeE34sJnCDRL+pjx2CRxPURhTyfLXFjrwQA8E/pVD4mP29BVHVxxBYO 9AcOwIe21uIyk5pdmhyqkbp/DSWf8s2lYHESPas+70a2n0Cl5XLJjUuqFZVsVb/sYDfi cu4g5F3Oqx67AwHOpiXO0DC7dt5pZA+pUCnPQOXb5T6RcRRdHcGI87dFQFHXO0i0nsSV Km7SXtGUHNiXr1w4OIYhmb+LWzKU/v9tgtycGoyi8Mm5RlD0DVLD5V4RUsmt+8ROqNpP olwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="mMte/lE7"; 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 k6si6497271pgr.500.2019.01.31.23.59.04; Thu, 31 Jan 2019 23:59:20 -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="mMte/lE7"; 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 S1728943AbfBAH4s (ORCPT + 99 others); Fri, 1 Feb 2019 02:56:48 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:34148 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728829AbfBAH42 (ORCPT ); Fri, 1 Feb 2019 02:56:28 -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=3tz3dA8YAfgSwTNZlXBMk+Ut75GyD80Dut7IKVEoxWs=; b=mMte/lE7H7Yvs97GgEylrWmeLa pARA/CiIJlOle+18gqTRg+N2DFrxNufrdmhdtCcwemPdi2/c5h8BIqpm8xdtgwOo7BTomg3IWi0k4 mLQgijs0vJNSLQdTaM3WHii496ayuS/fEYfkln5VjahMDZXY1ODbu+P9BppwUMpJAXJaNzrn8XgRz bnqrZnuQ2yXClL7w92KAh9r/YRcGSUEAL0ya4m1bXUaxh8sh7a+Zqx2LTJJ2XiJlpdtwcyGSJIHrV osSS2N7uNyjByBAHuKYU/q3mhwG2ODKz6BVVGZv1qn6G2kgQpchQzXgGROcDWRwtxPewVH79wisPd HLxlGVxw==; Received: from 089144212163.atnat0021.highway.a1.net ([89.144.212.163] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gpTgW-0005s5-64; Fri, 01 Feb 2019 07:56:24 +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 6/8] scsi: stop setting up request->special Date: Fri, 1 Feb 2019 08:55:55 +0100 Message-Id: <20190201075557.9249-7-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190201075557.9249-1-hch@lst.de> References: <20190201075557.9249-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 No more need in a blk-mq world where the scsi command and request are allocated together. Signed-off-by: Christoph Hellwig --- drivers/scsi/qedf/qedf_io.c | 6 ------ drivers/scsi/qedi/qedi_fw.c | 7 ------- drivers/scsi/scsi_lib.c | 3 --- drivers/scsi/sr.c | 1 - 4 files changed, 17 deletions(-) diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c index 6bbc38b1b465..6ca583bdde23 100644 --- a/drivers/scsi/qedf/qedf_io.c +++ b/drivers/scsi/qedf/qedf_io.c @@ -1128,12 +1128,6 @@ void qedf_scsi_completion(struct qedf_ctx *qedf, struct fcoe_cqe *cqe, return; } - if (!sc_cmd->request->special) { - QEDF_WARN(&(qedf->dbg_ctx), "request->special is NULL so " - "request not valid, sc_cmd=%p.\n", sc_cmd); - return; - } - if (!sc_cmd->request->q) { QEDF_WARN(&(qedf->dbg_ctx), "request->q is NULL so request " "is not valid, sc_cmd=%p.\n", sc_cmd); diff --git a/drivers/scsi/qedi/qedi_fw.c b/drivers/scsi/qedi/qedi_fw.c index 25d763ae5d5a..e2a995a6e8e7 100644 --- a/drivers/scsi/qedi/qedi_fw.c +++ b/drivers/scsi/qedi/qedi_fw.c @@ -616,13 +616,6 @@ static void qedi_scsi_completion(struct qedi_ctx *qedi, goto error; } - if (!sc_cmd->request->special) { - QEDI_WARN(&qedi->dbg_ctx, - "request->special is NULL so request not valid, sc_cmd=%p.\n", - sc_cmd); - goto error; - } - if (!sc_cmd->request->q) { QEDI_WARN(&qedi->dbg_ctx, "request->q is NULL so request is not valid, sc_cmd=%p.\n", diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 6fd1d8d83f07..7e256b384a99 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -1568,10 +1568,7 @@ static blk_status_t scsi_mq_prep_fn(struct request *req) scsi_init_command(sdev, cmd); - req->special = cmd; - cmd->request = req; - cmd->tag = req->tag; cmd->prot_op = SCSI_PROT_NORMAL; diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index 38ddbbfe5f3c..039c27c2d7b3 100644 --- a/drivers/scsi/sr.c +++ b/drivers/scsi/sr.c @@ -394,7 +394,6 @@ static blk_status_t sr_init_command(struct scsi_cmnd *SCpnt) ret = scsi_init_io(SCpnt); if (ret != BLK_STS_OK) goto out; - WARN_ON_ONCE(SCpnt != rq->special); cd = scsi_cd(rq->rq_disk); /* from here on until we're complete, any goto out -- 2.20.1