From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roland Dreier Subject: Re: [patch v4] infiniband: uverbs: handle large number of entries Date: Wed, 24 Nov 2010 20:05:47 -0800 Message-ID: References: <20101007071610.GC11681@bicker> <20101007161649.GD21206@obsidianresearch.com> <20101007165947.GD11681@bicker> <20101009231607.GA24649@obsidianresearch.com> <20101012113117.GB6742@bicker> <20101012210118.GR24268@obsidianresearch.com> <20101013091312.GB6060@bicker> <20101123071025.GI1522@bicker> <20101124221845.GH2369@obsidianresearch.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <20101124221845.GH2369-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> (Jason Gunthorpe's message of "Wed, 24 Nov 2010 15:18:45 -0700") Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jason Gunthorpe Cc: Dan Carpenter , Roland Dreier , Sean Hefty , Hal Rosenstock , linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kernel-janitors-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rdma@vger.kernel.org > This breaks how userspace wants to use poll, ie if you return anything > less than what I asked for then that means there is no more work to > do. Apps make this assumption, and is a reasonable thing to > do. Otherwise apps need a dummy call to ibv_poll to avoid races. OIC. forgot about that. hmm... > So if you are worried about how many times ib_poll_cq is called then > bound the kzalloc size and wrap the whole thing in a loop, but > realistically I have to think the performance trade off of > kzalloc/free vs calling ib_poll more often is not entirely obvious. That's true... maybe doing things one at a time but avoiding the allocs is the right tradeoff. > Who uses this path anyhow? AFAICT, cxgb3, cxgb4, nes, ipath and qib. - R. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html