Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752576AbdHMKTu (ORCPT ); Sun, 13 Aug 2017 06:19:50 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:39132 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751119AbdHMKTt (ORCPT ); Sun, 13 Aug 2017 06:19:49 -0400 Date: Sun, 13 Aug 2017 03:19:45 -0700 From: Christoph Hellwig To: Long Li Cc: Steve French , linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org, Long Li Subject: Re: [[PATCH v1] 12/37] [CIFS] SMBD: Handle send completion from CQ Message-ID: <20170813101945.GE17287@infradead.org> References: <1501704648-20159-1-git-send-email-longli@exchange.microsoft.com> <1501704648-20159-13-git-send-email-longli@exchange.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1501704648-20159-13-git-send-email-longli@exchange.microsoft.com> User-Agent: Mutt/1.8.3 (2017-05-23) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 232 Lines: 5 You seem to be doing memory allocations and frees for every packet on the write. At least for other RDMA protocols that would have been a major performance issue. Do you have any performance numbers and/or profiles of the code?