Re: [PATCH 2/3] fd/locks: allow get the lock owner by F_OFD_GETLK

From: stsp
Date: Tue Jun 20 2023 - 09:48:20 EST



20.06.2023 18:46, Matthew Wilcox пишет:
On Tue, Jun 20, 2023 at 06:39:07PM +0500, stsp wrote:
Though it will, for sure, represent the
task that _owns_ the lock.
No, it *DOESN'T*. I can open a file, SCM_RIGHTS pass it to another task
and then exit. Now the only owner of that lock is the recipient ...
Won't I get the recipient's pid in an
l_pid then?