Received: by 10.213.65.68 with SMTP id h4csp1688419imn; Thu, 29 Mar 2018 09:09:57 -0700 (PDT) X-Google-Smtp-Source: AIpwx49aU0Wk+52PEZ5z+tgtQs+U4l1xeC3a4QGE45f5NpmuNoC6jdO0s9wzrxjGW527n7hJ9Mwg X-Received: by 10.99.119.195 with SMTP id s186mr6053731pgc.453.1522339797166; Thu, 29 Mar 2018 09:09:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522339797; cv=none; d=google.com; s=arc-20160816; b=fVSAzxy3x+6EHajJ+V3wvwr0YBTIYNqoBIAeB6VmmknS5na53bXaMOuFbVFpDuqzcy VbNxJ/8I8xIygXT+5g5uuimaMuI+ayAcPsvi3DkqK91+l93um8rT6pBWFlH4LRi6kMwX Mv+Ed16lxG2KSWnj2NVYDpf07+RQfXlcmZmyWYcYznBjY+T6rAAN06f5PqrWFhmC7rAP LbtvU2qExdSdL0F5Zy4F0Qrcfc9BL64WyLaEr8DedhHAiRvTwuLMjQOOvEZDn5XRBgLn yrO/6mRwFvP6m+ID8M8bFtt84oOiF++hJ0eYsNL7hqIJm41I3fWe+Mz/4Y2H9KiaNRFk VVtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:message-id:date:cc:to:from :arc-authentication-results; bh=YjLKU5onE9Df7Ny7XOEKfyjO2M8AbWcrX7oj/GD1xbs=; b=zEQ1xpnRJRXLUGOnnAFWAL7dDJ6Tvt+ABshHhvFIAIehCLO6dT22G5oGCOcON15/v3 1F4gVZ77jDRCU2kt6aEfDfCdFYbhqVjJ6r+uxGxhQFx4OlvCigX/t7zDl4Vnq2FW72LH 9gR20j63qZEYC29X1fKcXcydsara3X5Wjr7h6P+vmfnFg7AulOJmxBFcdW6gO6idzkJp vw1lVMwVNw18idQXJxhbGkffi852D29gpACju054/OD5SGqAmYmwAKqxKlCh+7SHMxtr HjN/txQNB5HEhfy3rvFp9zYCkBVXiCZ2Yt11U6yr3SA0Xm2vhZD8BAMNTlcbKYYo0/4b dzWA== 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 u6si4076286pgv.730.2018.03.29.09.09.43; Thu, 29 Mar 2018 09:09:57 -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 S1752555AbeC2QHf (ORCPT + 99 others); Thu, 29 Mar 2018 12:07:35 -0400 Received: from ale.deltatee.com ([207.54.116.67]:46328 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751235AbeC2QHd (ORCPT ); Thu, 29 Mar 2018 12:07:33 -0400 Received: from cgy1-donard.priv.deltatee.com ([172.16.1.31]) by ale.deltatee.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1f1a5K-0005me-OA; Thu, 29 Mar 2018 10:07:32 -0600 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.89) (envelope-from ) id 1f1a5I-0001EQ-R8; Thu, 29 Mar 2018 10:07:28 -0600 From: Logan Gunthorpe To: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org Cc: Christoph Hellwig , Sagi Grimberg , James Smart , Logan Gunthorpe Date: Thu, 29 Mar 2018 10:07:17 -0600 Message-Id: <20180329160721.4691-1-logang@deltatee.com> X-Mailer: git-send-email 2.11.0 X-SA-Exim-Connect-IP: 172.16.1.31 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, hch@lst.de, sagi@grimberg.me, james.smart@broadcom.com, logang@deltatee.com X-SA-Exim-Mail-From: gunthorp@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=-7.5 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE,LR_URI_NUMERIC_ENDING,MYRULES_FREE,MYRULES_NO_TEXT, T_RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 Subject: [PATCH 0/4] SGL alloc and free helper functions for requests 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 Hey, These patches are going to be part of the P2PDMA patchset I'm working on. The change was suggested by Christoph. I just wanted to get the NVMe community's initial feedback on them seperate from our main patchset. That is, except for patch 0003 which I'm pretty sure is a valid bug fix but it needs review. I also can not test the fibre channel changes as I do not have hardware so I'd also appreciate it if someone can test it out. If you need more context the commit which modifies these to support P2P is [1]. This will likely be posted as the next version of the P2PDMA patchset in the next cycle. Thanks, Logan [1] https://github.com/sbates130272/linux-p2pmem/commit/4e57ff23d5ccc4687ac8eb567df1d4d15bf50254 Logan Gunthorpe (4): nvmet: Introduce helper functions to allocate and free request SGLs nvmet-rdma: Use new SGL alloc/free helper for requests nvmet-fc: Don't use the count returned by the dma_map_sg call nvmet-fc: Use new SGL alloc/free helper for requests drivers/nvme/target/core.c | 16 ++++++++++++++++ drivers/nvme/target/fc.c | 45 ++++++++++++++++----------------------------- drivers/nvme/target/nvmet.h | 2 ++ drivers/nvme/target/rdma.c | 20 ++++++++++++-------- 4 files changed, 46 insertions(+), 37 deletions(-) -- 2.11.0