From nobody Tue Apr 12 23:11:28 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D046B1AFC4FB; Tue, 12 Apr 2022 23:11:29 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KdM0x5MT1z3kfb; Tue, 12 Apr 2022 23:11:29 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649805089; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SClFVGjENywyQAphpV3sFT/9nrbThGKWvcRLqF5R1+E=; b=vHde7bG2zWIi16rJpRQmpIsJhThBaDqOqiK6OF5VdhBW1AE3wg+LbTk3vOxsgA3n5nSGl4 lkYPbFRHLcjNYhafcFPH5dp4Q6tJ1CJIFwamM8s9OJct1ako5L7cBkRicNeQEN52Gqrbsb 9/AuNM6qKrPo3SmUTmlnRJ+3nogo62BeIUFZy6yEI/31+eD5hFCWu9fqIKwoXKC39UbOEF 9b3hzLxIJpkT/iL3j3GC5JGWSn1Kz5sY4swmH+mDoSNtbKVEbMSSjgPyalgvmkY+tQzbzt jWdZkone7uPyiSN9Zyg1hkYkuIcD1sOKZI51TAE/eWEGheNA3zZ7urG023kC6w== Received: from [10.0.1.4] (ralph.baldwin.cx [66.234.199.215]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 291412413A; Tue, 12 Apr 2022 23:11:29 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <7e3c47ac-e2ba-7fab-986e-cdfc1ee78ecc@FreeBSD.org> Date: Tue, 12 Apr 2022 16:11:28 -0700 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: git: eca39864f702 - main - Add sysctl KERN_LOCKF Content-Language: en-US To: Konstantin Belousov , src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org References: <202204092148.239LmLpD093090@gitrepo.freebsd.org> From: John Baldwin In-Reply-To: <202204092148.239LmLpD093090@gitrepo.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649805089; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SClFVGjENywyQAphpV3sFT/9nrbThGKWvcRLqF5R1+E=; b=b5oMlwVByLCSKMCZ5fY4Q+iOjkb4Aegv8ut1XtnZEk1ow4cN5KR50Ba7RyrF98tgOjXoKX 9qKhsk+bctr3/IcFfGpuBit3Lqf9fXd2CNuHyAoZ0UpqMf5G8OBIzPhiPEwcXx6Xpn+13+ BxIacSsZWL6GE8HH2no/VEXvTUiRXGH4sp/l922PcTRkz6VyZo1DM3cImMmP91/Ur1rUfo PtVWpt+Lyscwbw1rKbqVesgo/DLoIQGhRNpKR26Rz+Eb5U5cunNh++Il23DM99SjpMnwVa OmVDj/h7bUz/wBfH6qVcE7s6yEP49uyja4v2g9hiRnKylDAcr1yIt29kHmmmGw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649805089; a=rsa-sha256; cv=none; b=JTBCkejjrM6KZMzjRfnKwmKirLI4zedLvS+QCd3vM69rTYzqnUWgXMCgLFZwgq3D2hG7ZE 0KQoQihURe+IsNlzd1uUaXoEF/0raJ7k2salzan/BJ4S/kYw2inHTKsM1HEeoig4K/Dwip zByC5I18VIZ8gw/ywhnJUZQt9TsycCGsAoInH78/GsE0ddWoWMF2fRGN66tB9bwpYXFNE7 LJw0/+0+42W/qG/ENIIE303OhPcG7MW+QcrqHNKQ5/TGCEEFRU4nt1GDTkR0E1oROO1GbI U6VOYRx0gNo/toF5R3/TLM/4SfKCAJ9F+JfHqxUdFpOFjSpc8mHfMsd5mlxvkA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 4/9/22 2:48 PM, Konstantin Belousov wrote: > The branch main has been updated by kib: > > URL: https://cgit.FreeBSD.org/src/commit/?id=eca39864f702e577eba3bc7e9992d1e5e56eba58 > > commit eca39864f702e577eba3bc7e9992d1e5e56eba58 > Author: Konstantin Belousov > AuthorDate: 2022-04-01 23:23:06 +0000 > Commit: Konstantin Belousov > CommitDate: 2022-04-09 21:43:53 +0000 > > Add sysctl KERN_LOCKF > > reporting the shapshot of the active advisory locks. > > A new VFS ops method vfs_report_lockf if provided in the mount point > op table. If it is NULL, as it is currently for all existing > filesystems, vfs_report_lockf() function is used, which gathers > information from the standard implementation inside kern/kern_lockf.c. > > Filesystems implementing its own locking (NFSv4 as example) can provide > a custom implementation. > > Reviewed by: markj, rmacklem > Sponsored by: The FreeBSD Foundation > MFC after: 1 week > Differential revision: https://reviews.freebsd.org/D34756 Nice! This is one of the things lsof has still groveled around in /dev/mem directly for in the past. Hopefully the lsof developer will make use of this. -- John Baldwin