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 <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov 2014-08-12 15:48:31 +04:00
parent 536076bd28
commit a40ab4e372

View file

@ -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);