Received: by 10.213.65.68 with SMTP id h4csp1713006imn; Thu, 29 Mar 2018 09:36:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+jwpfyymshixyuagFcuzMiX6XFnHORwcL5ByjSfkMO4yI7ETgTNJOo0a+IwyX2VHfNlX26 X-Received: by 10.167.129.136 with SMTP id g8mr6938084pfi.19.1522341366702; Thu, 29 Mar 2018 09:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522341366; cv=none; d=google.com; s=arc-20160816; b=DzFBV2JrRCUGEFseRwZ1ppOHQ1gJ4ngdJ5WcsiP4RlYmVzGCTctNCYpUOQRmpMewuR 9+rZxaw2l5Y0SZBMHlAxEfdOVt8UTBBkdJ0gUola1nMd17hTVszOfjKEIQav8l3286cg 9nRlmJQslhxkhNt5iNNLAa0uuOGK3tz5sTilIZ5Kf0yBIai54EpRCpvQje4OKb+HB4w3 H7azgHJhlJt8J53WjfFFi4XO85gPbEALfShbIVA1l3138awpTvqFWM0uQ+0bO5pR+cbO pU9xWquIuVTnIjKHmWe8zLxI0aRGRQiXvd9/6yG341Sj/k5/WYxdkZn/hV9Uj3qEFvVn 61JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=tnaRM7PQXNKSzA2CB6cJIU5Y7lw5L4EVyUHHQFy/ca4=; b=c4u4c2Rs1+wAzoCXk3VMVh2rk8EPd0Q/ZFTMXyQf+iYLu2IhcAWZawd2fep8f4jaqH xh0g5C8t6yLrmAAK4DcmkmJPIt+q3nhGx5dDacTrgbhc0JxydhVjv8fL+bYorq3ERSr+ xUFEm+blFak2GYUaCltKoCN9UNpzuqSM8YTdFRQlXp+ve97BkwjwUokUS6dn+FRKprJ3 UkEQijYZSdwgDlF1hQaXpXlQtnP36knORqq/1JSDXhJcRAe3Qo9fVyf5J0tk4UAEWy7F yhsH/xqW2I6IOOZtOstuCujXzzAjmAIQEXEVeQECBWBvuopoWEU48Fl8pGgIxeNytvKG ta3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=ATWz2ttH; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n61-v6si6659776plb.112.2018.03.29.09.35.52; Thu, 29 Mar 2018 09:36:06 -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; dkim=pass header.i=@broadcom.com header.s=google header.b=ATWz2ttH; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752502AbeC2Qee (ORCPT + 99 others); Thu, 29 Mar 2018 12:34:34 -0400 Received: from mail-qt0-f171.google.com ([209.85.216.171]:36507 "EHLO mail-qt0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751859AbeC2Qed (ORCPT ); Thu, 29 Mar 2018 12:34:33 -0400 Received: by mail-qt0-f171.google.com with SMTP id f16so6853155qth.3 for ; Thu, 29 Mar 2018 09:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=tnaRM7PQXNKSzA2CB6cJIU5Y7lw5L4EVyUHHQFy/ca4=; b=ATWz2ttHen9NGSB0OwjmpHOEuDZ96KVRmAWKrogNrXdKuNCfuuwf4NlXjPQfEkSuJZ SRGZKWhEmmMulLgufY4BmYxTz2MI+3p5nIhXFDWNI4OOvuFkgmqPZbb4TMYEDEx77XDO EwKSkgSRMYWenUk47UW4JEC3tsz7sc4Gx1M48= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=tnaRM7PQXNKSzA2CB6cJIU5Y7lw5L4EVyUHHQFy/ca4=; b=YdP9N6Bb+wJxEqYPdDuxhAu6kvYbLNgZUqiYtGbTLPUAu5aQw6byaPp+Auhot4LU0k fA0Qyzw8WK8fnZdDp2YFjEiOAVjJyzpEZhlmMJyA7pweypbWnOcx4dygxsoBJMjn9wMT dZ34QAv0H8PYhEtBJXO19JDtXLw5Kt/JoS2k6jt0/0AmMIuvLAAZoM7HA37NOzH9d5Ie xPicY+Y+ooSvdxMpLln+P1Y2S4rZ4NEsM1RUgCJkfIay3SX8iZdP5hz7yZrYKPBjfXcV EzfnPuclqzvWzFkNWU7XW8PGBQdXas6r+zNpBV8ikX/rzwPDzb1Fz4ZCSVqTtnON8RSk yAQA== X-Gm-Message-State: AElRT7G4uMGOfzj9mPe/ZO/viSgAtNoLtT+zqq7HIjOeVRCoZTE2uQQM 81FbP40r6E0LFdFd4HllfaS5TQ== X-Received: by 10.200.5.149 with SMTP id a21mr11959878qth.63.1522341272568; Thu, 29 Mar 2018 09:34:32 -0700 (PDT) Received: from [10.10.116.214] ([192.19.218.250]) by smtp.gmail.com with ESMTPSA id s16sm4883264qks.10.2018.03.29.09.34.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Mar 2018 09:34:32 -0700 (PDT) Subject: Re: [PATCH 3/4] nvmet-fc: Don't use the count returned by the dma_map_sg call To: Logan Gunthorpe , 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> <5ba62675-39b4-6409-5628-c59d8ae048de@deltatee.com> From: James Smart Message-ID: <5a5ab779-c949-8caa-abff-88063e885cd5@broadcom.com> Date: Thu, 29 Mar 2018 09:34:29 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <5ba62675-39b4-6409-5628-c59d8ae048de@deltatee.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/29/2018 9:30 AM, Logan Gunthorpe wrote: > 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 actually, I do think it's ok. about to post review on the next patch -- james