Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7838025rwd; Tue, 20 Jun 2023 06:58:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6j7YGJ5ngVB/UmC5Gpry+jZyHrA7qnNW44UgyRhjKzhvS4X5AbmUiwKoPSBf9JTj8FOhob X-Received: by 2002:aca:2313:0:b0:39e:a606:544e with SMTP id e19-20020aca2313000000b0039ea606544emr13181320oie.32.1687269530546; Tue, 20 Jun 2023 06:58:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687269530; cv=none; d=google.com; s=arc-20160816; b=IUFRtSysKptifLNODLqFxRz2Z3kUBpmHjuoN3xWe1fqZormo6GEFdi9P+zeGGyXbIW ORh8C708NrtY5hdaF8WiWqrxLYekgyHgTZqXK39z3fQ6Tc6huqw15jQcqmYv1P+pz1Bi bQcyeYUJ0kQnnmK6G6c02u+HJ0hbqMeeaZ/2f2mj5p7MmwF3PrGQdkIKzBmfZnSEceCJ xXWMfhcfxmtWgJlbUirT8lh1iO2r6kQhal3of7YtR2fy0SxYjo3/JoAhKXLDJ5ERtL1c la3AlyKQj6c43v3tzq08tuMlEfmwfdRd6owQdVHzEJNR6+qpqTtMPR5Ny1ZyDaxl5WOz OQvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Rr4hsTfTLT33LbrU7L4vWcoYlqbg8c6p38egzx11+3M=; b=gyMH+FCJxU3ZQxFwSAwwVfJTJ9Dq8KpqWfwqAlHvUn0ci4EGrI7sCIxayMcEjAN/kq ZUJ3YWV1C8g5c9JJg3SBcs2Kzljcys4nAk8PSX0IMZYrqRt80H712AGxoc69Mw/fN+JV sTSO3GtLfzBoA8bYPY3dYdl5Qlm5rrfZKN4325IQYK6mI55IcxlWar/BtJd8nC8nixmS lhmPOyJ2z8e/oYWc441q8jIIzoogY2AqRB6mJUiDzY8QNhdkwKYCVAbf9viSnKe0BfyK efP/NcKXTYlpSpd06CNIliuEnYEQF6jZDXlukBdidrqw3xx0PXqF7ofENwDHG//6B8qP Xgrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=I9j8WBvG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j14-20020a170902da8e00b001b3d5ec6739si2075683plx.481.2023.06.20.06.58.35; Tue, 20 Jun 2023 06:58:50 -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=@yandex.ru header.s=mail header.b=I9j8WBvG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233175AbjFTNsS (ORCPT + 99 others); Tue, 20 Jun 2023 09:48:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233161AbjFTNsN (ORCPT ); Tue, 20 Jun 2023 09:48:13 -0400 Received: from forward502b.mail.yandex.net (forward502b.mail.yandex.net [IPv6:2a02:6b8:c02:900:1:45:d181:d502]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 146901B6; Tue, 20 Jun 2023 06:47:44 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-90.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-90.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:2505:0:640:a85f:0]) by forward502b.mail.yandex.net (Yandex) with ESMTP id 9C8C95ECEC; Tue, 20 Jun 2023 16:47:34 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-90.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id VlhAhMiWkGk0-SGMglbM2; Tue, 20 Jun 2023 16:47:33 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1687268854; bh=Rr4hsTfTLT33LbrU7L4vWcoYlqbg8c6p38egzx11+3M=; h=From:In-Reply-To:Cc:Date:References:To:Subject:Message-ID; b=I9j8WBvGiB/0yyKXb68uOQNJ65a3hINN8DfE4EBy/22PbDy7R/nTW63x5F9efc8Gu jJFJllEiKiZPhC1yetAf8qT85xHsg3/W/5Xq4KxIHM+r6+0NZCiX58FuiLLW0bJP+1 g+prqW6cVxGfvb5ojkuC2SHmYSRuME8dBWMs+550= Authentication-Results: mail-nwsmtp-smtp-production-main-90.myt.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: Date: Tue, 20 Jun 2023 18:47:31 +0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 2/3] fd/locks: allow get the lock owner by F_OFD_GETLK Content-Language: en-US To: Matthew Wilcox Cc: Jeff Layton , linux-kernel@vger.kernel.org, Chuck Lever , Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org 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> From: stsp In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, 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 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?