Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9218944rwd; Wed, 21 Jun 2023 04:49:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7nix+oTDRXRIRMujW2MthT66MuX244v9Kmjlbf2NiRBmQPIZ7Fg7wWI5ahL4cyEU6sA/M8 X-Received: by 2002:a17:903:41ce:b0:1b6:6a14:3734 with SMTP id u14-20020a17090341ce00b001b66a143734mr11353532ple.29.1687348175867; Wed, 21 Jun 2023 04:49:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687348175; cv=none; d=google.com; s=arc-20160816; b=nbjEgEddh1tbWTjo5jHf38DhmQWzkZoMDjBTqUggVJAFFrDVvSx0Pyxb7lcnQxsYrI Kwo9us59Okw3rbw8gwudFto+c0M50MJn4X4PdffTGoDbAY+aivO2hmdgg33ecSDGMSaM 24gfk36tW1/XXzjnhz2v38Hckf79JQn1huxgjYK+TCN2CmEQtG4LMSra8cIgjGwN6Xp2 L+cH6gGAgeeXN0+1dge1TFAcOYB4mUvHymWjnoQmHjQekz/mEzgxcGM0ma0OqHRm79Lz w4DolHQ57muf/aAnZbXJCSgdnxmWOen4Wf60e3LRATpL4jwQO1Oob++a8o3VQSXTTFlU 49RQ== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=kkctN5hO0bZKY6UTCL9kAoa/n0HiegB8POExFF+esPY=; b=l47hJ1B3JSYT+TTVy+qtbZU5oFrpBa+b5Ul+5aRR9vkL2szmr5JDsiqJGDOKUS/90q vsPfUPClFRw5RJwvC4/nBj9TWmKPV359A7U+FQckggc3ctiBbVtjulaXRoZxP+N8cUS6 vOvXsvSldo/EhJRLQSS5ebLf6SbjOAmrZWdOhIHs6bBHAGiPwoi4G/jN612Q7rbh8RQr HFjLiIfT8UKz7jLwijcSoi/I/RLg/jHeaoZCkE1BaBhticCx5Um8rQmEmLv6sX9oVAhP 0i3+Q8IaTHjVZyFcj9wDh3u3nbKo1fGMN5YuU3LWLukGCgzfbJBj8AGIhHwxeDsNvszx 2Fdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=fhr65oB0; 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 kf4-20020a17090305c400b001b04c92cb42si3711918plb.357.2023.06.21.04.49.19; Wed, 21 Jun 2023 04:49:35 -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=fhr65oB0; 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 S232729AbjFUL0a (ORCPT + 99 others); Wed, 21 Jun 2023 07:26:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232736AbjFUL00 (ORCPT ); Wed, 21 Jun 2023 07:26:26 -0400 Received: from forward501a.mail.yandex.net (forward501a.mail.yandex.net [IPv6:2a02:6b8:c0e:500:1:45:d181:d501]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AB6919B; Wed, 21 Jun 2023 04:26:25 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-39.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-39.vla.yp-c.yandex.net [IPv6:2a02:6b8:c0d:31b:0:640:fdf8:0]) by forward501a.mail.yandex.net (Yandex) with ESMTP id BB7335EEE4; Wed, 21 Jun 2023 14:26:22 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-39.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id JQg8CP8DfeA0-xkx6Ixwp; Wed, 21 Jun 2023 14:26:22 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1687346782; bh=kkctN5hO0bZKY6UTCL9kAoa/n0HiegB8POExFF+esPY=; h=In-Reply-To:Cc:Date:References:To:From:Subject:Message-ID; b=fhr65oB0o3ShxQflNR/HweThZ/qaLkbwJN+l43+nAK+V/qm8CCr2Q0PjOTH45Tuel UU6JfzqqlsIQy4Ypmg/cyuhTXjc/KgCHOMngU9Xd4G76nkVX95sYPW1M2vYz2DZVKg 5ZSfVaS7biPaOtnqYtbuirwKDajjlbyxzf7Nk5LU= Authentication-Results: mail-nwsmtp-smtp-production-main-39.vla.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: Date: Wed, 21 Jun 2023 16:26:14 +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 From: stsp To: Jeff Layton , linux-kernel@vger.kernel.org Cc: Chuck Lever , Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, Matthew Wilcox 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> <9c0a7cde-da32-bc09-0724-5b1387909d18@yandex.ru> <26dce201000d32fd3ca1ca5b5f8cd4f5ae0b38b2.camel@kernel.org> <0188af4b-fc74-df61-8e00-5bc81bbcb1cc@yandex.ru> <2d9f894c-39aa-ec45-78f7-a11ac980bb62@yandex.ru> In-Reply-To: <2d9f894c-39aa-ec45-78f7-a11ac980bb62@yandex.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.7 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 21.06.2023 16:22, stsp пишет: > > 21.06.2023 16:05, Jeff Layton пишет: >> Yes. Ambiguous answers are worse than none at all. > > But same for read locks, when you > query them with F_OFD_GETLK. > It doesn't sound ambiguous to me, > you get the valid owner, and you can > iterate them if you kill them in a > process (same as for read locks). And in fact, no, you can't iterate the read locks *unless* you use pid to kill its owners! :) So this way you can actually iterate the read locks, but not in a most convenient way. :)