From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH] Pid namespaces vs locks interaction Date: Fri, 21 Dec 2007 16:50:39 -0800 Message-ID: <20071221165039.99cea9a7.akpm@linux-foundation.org> References: <200712061411.32159.vgusev@openvz.org> <200712211522.31279.vgusev@openvz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: serue@us.ibm.com, xemul@openvz.org, bfields@fieldses.org, linux-fsdevel@vger.kernel.org To: Vitaliy Gusev Return-path: Received: from smtp2.linux-foundation.org ([207.189.120.14]:57608 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750779AbXLVAvL (ORCPT ); Fri, 21 Dec 2007 19:51:11 -0500 In-Reply-To: <200712211522.31279.vgusev@openvz.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, 21 Dec 2007 15:22:31 +0300 Vitaliy Gusev wrote: > fcntl(F_GETLK,..) can return pid of process for not current pid namespace (if > process is belonged to the several namespaces). It is true also for pids > in /proc/locks. So correct behavior is saving pointer to the struct pid of > the process lock owner. > > Assigned-off-by: Vitaliy Gusev "Signed-off-by:", please. > [diff-pid-to-nspid.patch text/plain (2.9KB)] eek. Please don't include two copies of the same patch in the one email. The result applies happily with `patch --dry-run' but then wrecks my tree when I try to apply it for real. It tricks me every time, that one.