From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 606A3EB64DB for ; Tue, 20 Jun 2023 13:46:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232699AbjFTNqK (ORCPT ); Tue, 20 Jun 2023 09:46:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231144AbjFTNqJ (ORCPT ); Tue, 20 Jun 2023 09:46:09 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A7CBA4; Tue, 20 Jun 2023 06:46:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=keI+2flqm4to7Jr8mzcSDDgqcShbyqtzxfzQgnZ0qog=; b=jTq+IV5h59rvjlOO6YYrNtjjPt bAmKiz6/Ep2DxxTi8VFXiBjJfFUOYIPXz/kLau8BTzX8Mp7BZI5Fr9B+LIVGJDyMGcARdZNYj46iS rpnBf66HcTp+gmS8AOdeVprArWsmm+kASoPjbBvmHYEGB9NLFMaXljmShUPSwc92TILDPakpK57De TJc8pRr+QYEQb0RI/C+xggcmVH0N/iD4S1kOQYbkB2GYLv6qjyHX1fVBoMYuS6lSJ6HjVbA6BtQbc mQtP1E/EauBHxH8IOelOLl7maOIWBolLAttvH8qZ5Xhn4aqdXM5CcPp0Eb5j9vtjRBismujWeWv// kQwR++4A==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qBbgI-00D8bI-Mh; Tue, 20 Jun 2023 13:46:02 +0000 Date: Tue, 20 Jun 2023 14:46:02 +0100 From: Matthew Wilcox To: stsp Cc: Jeff Layton , linux-kernel@vger.kernel.org, Chuck Lever , Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 2/3] fd/locks: allow get the lock owner by F_OFD_GETLK Message-ID: References: <20230620095507.2677463-1-stsp2@yandex.ru> <20230620095507.2677463-3-stsp2@yandex.ru> <5728ebda22a723b0eb209ae078e8f132d7b4ac7b.camel@kernel.org> <5f644a24-90b5-a02f-b593-49336e8e0f5a@yandex.ru> <2eb8566726e95a01536b61a3b8d0343379092b94.camel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org 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.