Received: by 10.213.65.68 with SMTP id h4csp1698131imn; Thu, 29 Mar 2018 09:20:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+fgyp6TJyIIQLRhxNcJGYaLemCcKuUsSkMPNWjW4mAGU1eA2eyvbz35WaEFVVQmli9doo4 X-Received: by 2002:a17:902:aa48:: with SMTP id c8-v6mr8825258plr.361.1522340405357; Thu, 29 Mar 2018 09:20:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522340405; cv=none; d=google.com; s=arc-20160816; b=Xy/vutRajSgMTmeFkenVI7aoZt4jSbsJ58WVEGMYTRtkcGOniNoswu+AIJWEyXIcki C9rbcAonUWSU4LiBvMHQA0FsHFbHNaui5OAoA8urRt07BNvAOQnTTtOy3hRog6ssZvk8 uF1IXVHXeHyumaqvftOvKVVTC7WBVKjavdCmbuwgNLez0Ftf/0QC3Pa2/YuMyiWc/PzM VVot3IwP7F53uZw7rZhK0gnjy5E4alDOktvREsvJ+6n8rhZZwtICQIGlaRRjYPdVhVZP w05yfAK9On3xNMvMP+mPZwfm1hDkns+DBFo0NcDChGgYpXbdMHnbTNdDPYLwEdEAzjSy 26EQ== 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=wAP9+VwiOpbbXswxZ4nINws8yTapEqmscYCKZUnhlbM=; b=FCTKYN3B5TYOa/ePq909zh28ziM0Q3f6OxrtLU9R8xPd2PD+QCllY2hjMAH98eLH5X mknjtJSzTQEaAKib0bV4mATABlcifBCF501e2Ap1d8JlxAcHItpd+1Uc1jrnoWxeHXzt CX2wTxjW0Ilkvpmbp7NbENl0SqnfFh89qPMlkOuBnicpvLIyBAdu4VBGGAmg4Heg6rVC vHQB0ImuZ7F8GWvDAbLsFMPZPd5H9sZ88S6+1TgMOybRg77v/gz9WOx3vPf9n3ykI59h Ofy9F/79Px3hVBDbxRKTuQFhpPeGhbAT733PrsfLN/COXXtDKlephQ7j5rkZuJrfW6xS UNtA== 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 a22si4206331pgv.47.2018.03.29.09.19.20; Thu, 29 Mar 2018 09:20:05 -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 S1752608AbeC2QPa (ORCPT + 99 others); Thu, 29 Mar 2018 12:15:30 -0400 Received: from ale.deltatee.com ([207.54.116.67]:46446 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752086AbeC2QP3 (ORCPT ); Thu, 29 Mar 2018 12:15:29 -0400 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.89) (envelope-from ) id 1f1aCw-0005uM-5Y; Thu, 29 Mar 2018 10:15:23 -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:15:21 -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. Ok, will do. Thanks, Logan