From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: Kernel fast memory registration API proposal [RFC] Date: Wed, 15 Jul 2015 11:19:26 -0600 Message-ID: <20150715171926.GB23588@obsidianresearch.com> References: <559F8BD1.9080308@dev.mellanox.co.il> <20150713163015.GA23832@obsidianresearch.com> <55A4CABC.5050807@dev.mellanox.co.il> <20150714153347.GA11026@infradead.org> <55A534D1.6030008@dev.mellanox.co.il> <20150714163506.GC7399@obsidianresearch.com> <55A53F0B.5050009@dev.mellanox.co.il> <20150714170859.GB19814@obsidianresearch.com> <55A6136A.8010204@dev.mellanox.co.il> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Chuck Lever Cc: Sagi Grimberg , Christoph Hellwig , "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Steve Wise , Or Gerlitz , Oren Duer , Bart Van Assche , Liran Liss , "Hefty, Sean" , Doug Ledford , Tom Talpey List-Id: linux-rdma@vger.kernel.org On Wed, Jul 15, 2015 at 10:32:55AM -0400, Chuck Lever wrote: > I would rather not build a non-deterministic delay into the > unmap interface. Using a pool or having map do an implicit > unmap are both solutions I=E2=80=99d rather avoid. Can you explain how NFS is using FMR today? When does it unmap a FMR rkey and lkey? If NFS/etc currently have a hole on rkey invalidation when using FMR, and that hole simply cannot reasonably be solved, I'm actually mildly O= K with enshrining that in a new MR API.. So, it would seem to me, the only major addition we'd need to Sagi's draft to support FMR, would be a way to catch the completion (the rdma_unreg_mr) and trigger async MR recycling async in a work queue. Sagi, how does cleanup of the temporary FRMR work in your draft proposal? What does the ULP do upon completion? [Also, just mildly curious, how do we get into an unsleepable context anyhow? is the IB completion pending callback called in a sleepable context?] Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" i= n the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html