From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH V3 5/6] RDMA CM: Save Owning PID Date: Mon, 20 Dec 2010 14:54:33 -0700 Message-ID: <20101220215433.GB12090@obsidianresearch.com> References: <1292257370-24391-1-git-send-email-nirm@voltaire.com> <1292257370-24391-6-git-send-email-nirm@voltaire.com> <20101214183458.GD2506@obsidianresearch.com> <1292769382.2369.2145.camel@nirm-desktop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1292769382.2369.2145.camel@nirm-desktop> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Nir Muchtar Cc: rolandd-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, monis-smomgflXvOZWk0Htik3J/w@public.gmane.org, ogerlitz-smomgflXvOZWk0Htik3J/w@public.gmane.org List-Id: linux-rdma@vger.kernel.org On Sun, Dec 19, 2010 at 04:36:22PM +0200, Nir Muchtar wrote: > On Tue, 2010-12-14 at 11:34 -0700, Jason Gunthorpe wrote: > > On Mon, Dec 13, 2010 at 06:22:49PM +0200, Nir Muchtar wrote: > > > Save owning PID to id-priv when creating id's/accepting connections. > > > > This should be called creator_pid, not owner - to avoid confusion. > But it's meant to be the owner and not necessarily the creator. > That's why its value is replaced in rdma_accept. There is no such thing as a single owner for a fd based resource like a RDMA_CM ID. The FD can be held by multiple processes. This is why the best you can do by storing PIDs at certain times is to constuct a creator_pid. Owner pid can only be determined by cross-referencing the inode of the FD that holds the ownership of the object to the processes that hold that FD. Jason -- 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