[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZJGtmrej8LraEsjj@casper.infradead.org>
Date: Tue, 20 Jun 2023 14:46:02 +0100
From: Matthew Wilcox <willy@...radead.org>
To: stsp <stsp2@...dex.ru>
Cc: Jeff Layton <jlayton@...nel.org>, linux-kernel@...r.kernel.org,
Chuck Lever <chuck.lever@...cle.com>,
Alexander Viro <viro@...iv.linux.org.uk>,
Christian Brauner <brauner@...nel.org>,
linux-fsdevel@...r.kernel.org
Subject: Re: [PATCH 2/3] fd/locks: allow get the lock owner by F_OFD_GETLK
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 ...
who may not even have received the fd yet.
Powered by blists - more mailing lists