]> git.baikalelectronics.ru Git - kernel.git/commit
pid-namespaces-vs-locks-interaction
authorVitaliy Gusev <vgusev@openvz.org>
Thu, 17 Jan 2008 00:07:08 +0000 (00:07 +0000)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Sun, 3 Feb 2008 22:51:36 +0000 (17:51 -0500)
commitf3c0b23d5a22d542568d9323d3692765f43cbd87
tree0d20fa10151e43f9f104986a2b89ec88ca0135af
parente0641ae9746d379e170f722931abc14ae5fb9883
pid-namespaces-vs-locks-interaction

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.

Signed-off-by: Vitaliy Gusev <vgusev@openvz.org>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/locks.c
include/linux/fs.h