Received: by 10.213.65.68 with SMTP id h4csp1709847imn; Thu, 29 Mar 2018 09:32:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx48rTMFkUjuvA3942nqS5NkhCH9RJCTCmr6dGkhsjYNgXD4ZU6YznO2CH05hKaeqZI8VLF1j X-Received: by 2002:a17:902:2a43:: with SMTP id i61-v6mr9138630plb.54.1522341143392; Thu, 29 Mar 2018 09:32:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522341143; cv=none; d=google.com; s=arc-20160816; b=AFnUoBqFsYfrSyLZ/9PmhJ0XCn4pFOPMSOxvfvmQ0HJQc+3W6ZmQQQD0bEWwF+hsvs RW4K3PGrNxOnL459nqjP/agIpJEPmKA89TmONMdxHm+5hPpDZf+GUPUqN12NKp9nyqlR T3QVdA0DZFh6NFxNcSbSkC6QSX3/mTrhCtOUnUpsVRLCdQ2SmRf+LHVvmeaS6XmDo6ed uvZuERd0JUcKyH5VvIwu7kKMFhHid0vQ8zEx+uHqIkiX+WATMd/mf85CCY0vh8NghMTX CS2Ps5fuxSlwivJREJtFlzLieGQqLtCm8xCur166TfWTGXIcx9sm2NC5ejV8x8cl3ed2 ZUDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:arc-authentication-results; bh=Do4vSnxYuSGYKQBJpn9wysPtq7zUXOkelwUyafVSyjA=; b=ecxuBs51NCQKIlBMAz6dIxJ+llaUI1pKMCRRGzJoM3FONpYCfQ7i0HsG8lH+Af4+70 obr2tjywlHgdSaXpauPPgKxoY2+T/0ho4HOcNgGSK3g9tzz5snlzAu22HPB6IX/3cRH+ pZg04ExIK+pv1dcIdThCjVxzqLP0GFJU72Z8wOWE92gBs6bD6i1uoizvrilbFKXW9EDD 3+pd4UuZ7K9ISBIDXcoX1n2l6vGK4g6CKxCEiT509h3aP4nyYveZUOL02kES12YVGj0Z MaIe283QljEuHtq2vbwUJAJsAC+Dx1fM2OqW1/OMFIEpEEdK+v9iInozSiKEiD7J3v9v yBpw== ARC-Authentication-Results: i=1; mx.google.com; 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 p20si4716431pfi.345.2018.03.29.09.32.09; Thu, 29 Mar 2018 09:32:23 -0700 (PDT) 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; 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 S1752587AbeC2Qaw (ORCPT + 99 others); Thu, 29 Mar 2018 12:30:52 -0400 Received: from ale.deltatee.com ([207.54.116.67]:46568 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751865AbeC2Qav (ORCPT ); Thu, 29 Mar 2018 12:30:51 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1f1aRf-00061Y-1w; Thu, 29 Mar 2018 10:30:36 -0600 To: James Smart , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org Cc: Christoph Hellwig , Sagi Grimberg References: <20180329160721.4691-1-logang@deltatee.com> <20180329160721.4691-4-logang@deltatee.com> <03cb3610-8ec7-9dc4-9e0a-82f4c30de578@broadcom.com> From: Logan Gunthorpe Message-ID: <5ba62675-39b4-6409-5628-c59d8ae048de@deltatee.com> Date: Thu, 29 Mar 2018 10:30:34 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <03cb3610-8ec7-9dc4-9e0a-82f4c30de578@broadcom.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: sagi@grimberg.me, hch@lst.de, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, james.smart@broadcom.com X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE,T_RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 Subject: Re: [PATCH 3/4] nvmet-fc: Don't use the count returned by the dma_map_sg call X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/03/18 10:24 AM, James Smart wrote: > Signed-off-by: James SmartĀ  Thanks James. > As for "not used anywhere", be careful as the structure being prepped is > passed from the nvme-fc transport to an underlying lldd. So the > references would likely be in the lldd. Can you elaborate? The 'data_sg_cnt' member was in 'struct nvmet_fc_fcp_iod' which is declared in fc.c so it doesn't seem sane for lower driver to access it... In fact the next patch in the series removes it completely. Logan