From a40ab4e37293704eb6aca6842e8716730a72382d Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Tue, 12 Aug 2014 15:48:31 +0400 Subject: [PATCH] locks: Dump virtual pid of a lock owner If we're dumping namespaced tasks, the fl_owner value we see are the real pids of tasks, while we need virtual ones. Signed-off-by: Pavel Emelyanov --- file-lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file-lock.c b/file-lock.c index 5dc879430..ab0f67bf0 100644 --- a/file-lock.c +++ b/file-lock.c @@ -156,7 +156,7 @@ int dump_task_file_locks(struct parasite_ctl *ctl, fl->start, fl->end); file_lock_entry__init(&fle); - fle.pid = fl->fl_owner; + fle.pid = ctl->pid.virt; ret = fill_flock_entry(&fle, fl->fl_flag, fl->fl_type, fl->fl_option);