Commit a40ab4e3 authored by Pavel Emelyanov's avatar Pavel Emelyanov

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: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 536076bd
...@@ -156,7 +156,7 @@ int dump_task_file_locks(struct parasite_ctl *ctl, ...@@ -156,7 +156,7 @@ int dump_task_file_locks(struct parasite_ctl *ctl,
fl->start, fl->end); fl->start, fl->end);
file_lock_entry__init(&fle); 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, ret = fill_flock_entry(&fle, fl->fl_flag, fl->fl_type,
fl->fl_option); fl->fl_option);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment