Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7828117rwd; Tue, 20 Jun 2023 06:50:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5h8DlSOFLwtFssrCKqmFyR0TRcVhQE1gqFP2Y6/KuBX1L27xaG7YUseEAC2M7s6AX+Mc00 X-Received: by 2002:a05:6a00:1a56:b0:658:c1a9:becc with SMTP id h22-20020a056a001a5600b00658c1a9beccmr18086664pfv.12.1687269025036; Tue, 20 Jun 2023 06:50:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687269025; cv=none; d=google.com; s=arc-20160816; b=O5qyCWk2UjxAPNWwiBNogkIVG+j/WxTxjv72DYeM/SNulrQaUJSuA/d3J/D23t+bxV yV4U3fS9sM5aFR9RoEgvkz0WU+FqCV6f767dwDXMvJhVczxLP41lU5174LRscqFYZGjz v3d5PDF5lB39TpIdYbCQ5OsuRKtO2Zpu9rhqJj1W6MNs+vZU9uyFc9eJd6StT0+q1bCt oHBx9mrLkFrnqhNEFfuq+helnDD4D8ambSlOkpQujoTGG2LhgzlUEUaR+uuyRAW5Eb78 Z9u92rB1YmZKAEL67mRPYn5x77AR9I4Hc4N8Jgd9x5pqNTo/DikkSMUDvvEIwCRqTakU vibw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=keI+2flqm4to7Jr8mzcSDDgqcShbyqtzxfzQgnZ0qog=; b=SW7UIT2ykC4H9vT+Wdj8/1j25mQXEjbtnDqrcXUsyuNGmoCtjrhspU8k+HeWkowQsZ BJwxnz/xIZnLOz58EiWiwTtKlFwYiRNEjLgb2l8E+DPhIX/MnLucX3jUope8AR3MmBwr zZUk4z1Mz38QkV1lao3E891iFGSwZ6i7iYSqgZD7Qoso+qfOdGbRANp1WSyQV9yUXzc5 2Tb1amfBVf3KdXKFZSoeAOYbtyf//zJZ2M0ZdAOutAIooto9V77L+Cy7zMzE/lHfg1HU gkabWafeKBjpMIpqHtLsZ01zufL8Ciw+jghI7l3nIDpsIcZcjjgXhIHo/PjPrOt39f8F DFkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=jTq+IV5h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b5-20020aa79505000000b006530c90eaa6si1697213pfp.192.2023.06.20.06.50.04; Tue, 20 Jun 2023 06:50:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=jTq+IV5h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231865AbjFTNqK (ORCPT + 99 others); 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: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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.