Received: by 10.213.65.68 with SMTP id h4csp1716688imn; Thu, 29 Mar 2018 09:40:38 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+hLAz9O3OUBYEGJEZRDpe5YksPo1QLEtqhdUNZUbwm/ezHZWRbyZFlTNwgvY+TgqWiR+Pl X-Received: by 2002:a17:902:7045:: with SMTP id h5-v6mr3677779plt.1.1522341638705; Thu, 29 Mar 2018 09:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522341638; cv=none; d=google.com; s=arc-20160816; b=BeboqW5juTIohjxS9G0VepcwouHfoW3LzCh7BK1oTvMAF+UoFpC430OvG5SBpoRdLk e4jJ1c8aqxDlooJiN6oWmvAE6fFyJ1WLvPdb9d6ZTkidDIbj2nlnXoud4ua+Yc6sRQTE aodD3n2PzwYaPbSqB645WWb+v23oitgus/Q1/2jbj8rRvvifP4UK2oWOiHjzEnQXvfRS gRUcfqAPXsQC1v66k1y3DlCwUSvHtSH134tqMBxdp7btDy2cLs3bn7D53UJJ2cKZVEGN vu63AS0DvnRnokNPdaPfNDQBt5ip1FGb8EEAlLtRjjYMPr/jDy2F1ecBdLgZVJuZJFtI otdQ== 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=TxMI0h2lXLCPXoSfghqgEz7kVitiWKdaTWStjRSyHhI=; b=uKoW3D9P8pOINpCCsUioqisLaW60OnS1PUrmK/gwcll/Rdk+ylEmSYQ+fRcJE33Idh +FIqDGNxUb3v2KXHqsIUCXDbEZXLky/NlhctMlPkp+EAj+Ds4gvj41MFmAS+BdeCYli3 dMypXVY3DMPsYX2u0fSCH6UV+RW1kZIIcaBCmsOqV/N6oDdM/Ebl3ce/QpRZc6Fh6+4o CgQQMCHQnkbiBcu+kNl++qc3EYfTpQu5zdRAPOV7uPcKSCbrzbYUJwF3WvqPxzBcTL8D 7+VHTCxBouxgml669HTP5HTzCYqHpd8VfJJ+MX7m7xnGnnYwB4bXilK0SOXFKmQKo+X8 Z5ig== 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 o33-v6si6176051plb.429.2018.03.29.09.40.24; Thu, 29 Mar 2018 09:40:38 -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 S1752131AbeC2Qiy (ORCPT + 99 others); Thu, 29 Mar 2018 12:38:54 -0400 Received: from ale.deltatee.com ([207.54.116.67]:46638 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750881AbeC2Qix (ORCPT ); Thu, 29 Mar 2018 12:38:53 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1f1aZa-000657-Fu; Thu, 29 Mar 2018 10:38:47 -0600 To: Bart Van Assche , "linux-kernel@vger.kernel.org" , "linux-nvme@lists.infradead.org" Cc: "james.smart@broadcom.com" , "hch@lst.de" , "sagi@grimberg.me" References: <20180329160721.4691-1-logang@deltatee.com> <20180329160721.4691-4-logang@deltatee.com> From: Logan Gunthorpe Message-ID: Date: Thu, 29 Mar 2018 10:38:45 -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: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: sagi@grimberg.me, hch@lst.de, james.smart@broadcom.com, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Bart.VanAssche@wdc.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:14 AM, Bart Van Assche wrote: > On Thu, 2018-03-29 at 10:07 -0600, Logan Gunthorpe wrote: >> + ret = fc_dma_map_sg(fod->tgtport->dev, sg, nent, >> + ((fod->io_dir == NVMET_FCP_WRITE) ? >> + DMA_FROM_DEVICE : DMA_TO_DEVICE)); >> + /* note: write from initiator perspective */ > > If you have to repost this patch please remove the four superfluous parentheses. Oh, actually, I made this change in patch 4 of this series for the next time I post it. This allowed me to cleanup both the map and unmap instances in the same patch. Also, if the maintainer wants to pick up patch 3 as a bug fix I can carry the rest in the P2PDMA series. Thanks, Logan