Return-Path: Received: from aserp1040.oracle.com ([141.146.126.69]:44364 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751198AbbKYTSQ (ORCPT ); Wed, 25 Nov 2015 14:18:16 -0500 Subject: Re: Future of FMR support, was: Re: [PATCH v1 5/9] xprtrdma: Add ro_unmap_sync method for FMR To: Or Gerlitz References: <20151123220627.32702.62667.stgit@manet.1015granger.net> <20151123221430.32702.86114.stgit@manet.1015granger.net> <5653B606.3070700@talpey.com> <20151124065225.GB29141@infradead.org> <5654DC7A.7080807@oracle.com> <20151125090009.GA11255@infradead.org> <5655EB40.8070508@oracle.com> Cc: Christoph Hellwig , Tom Talpey , Chuck Lever , "linux-rdma@vger.kernel.org" , "linux-nfs@vger.kernel.org" , Sagi Grimberg From: santosh shilimkar Message-ID: <56560955.2080705@oracle.com> Date: Wed, 25 Nov 2015 11:17:41 -0800 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Sender: linux-nfs-owner@vger.kernel.org List-ID: On 11/25/2015 10:22 AM, Or Gerlitz wrote: > On Wed, Nov 25, 2015 at 7:09 PM, santosh shilimkar > wrote: >>>> As already indicated to Sagi [1], RDS IB FR support is work in >>>> progress and I was hoping to get it ready for 4.5. > > These are really good news! can you please elaborate a bit on the > design changes this move introduced in RDS? > Yeah. It has been a bit of pain point since the need was to keep the RDS design same and retrofit the FR support so that it can co-exist with existing deployed FMR code. Leaving the details for the code review but at very high level, - Have to split the poll CQ handling so that send + FR WR completion can be handled together. FR CQ handler and reg/inv WR prep marks the MR state like INVALID, VALID & STALE appropriately. - Allocate 2X space on WR and WC queues during queue setup. - Manage the MR reg/inv based on the space available in FR WR ring(actually it is just a counter). This is bit tricky because RDS does MR operation via sendmsg() as well as directly through socket APIs so needs co-ordination. Am hoping that above remains true when code actually makes to the list but that is how things stand as of now. Regards, Santosh