From nobody Wed Apr 13 00:54:37 2022 X-Original-To: dev-commits-src-main@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 3398111CC474; Wed, 13 Apr 2022 00:54:57 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-il1-f179.google.com (mail-il1-f179.google.com [209.85.166.179]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KdPJJ3rKgz4Wwn; Wed, 13 Apr 2022 00:54:56 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-il1-f179.google.com with SMTP id b5so203451ile.0; Tue, 12 Apr 2022 17:54:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fg7ZZ/R0RxjamLnNEgr2Uj/CejtXhyPpA9914OlsJw0=; b=Z9KP0l1uASeE/YikgorXjfjf4NRlcwTmXwD6mYK1xjQ6TDxtK+ffElv0RtpwV58f8/ +kic2+uP6KHWMjPJ41+oUJjb7y3TRwkYjQVUv39W/awNjPlS/QVkzLth+SV746mp0OfP jgPR16KnnrNdnwmQ8Ok4rXS6EkoYLIw8vV1eaY8/pau4rG9ym7FCBIDKgouXBX02X3Mt GHR66sz44ebdCAUs+l3m4P4ipmuD+RtF+eRUzviaMW350DVMb7GUXAxSpovAjpGDL/1z 392N5uaZ8vbMt7+MLsQkx/D+0go3a52IAl0aKgykY4XiQhg5Wmz7AdNcVjfPXKGpx36m t0LA== X-Gm-Message-State: AOAM531W1YOLb4heMKNraLWBKEtO0C3vEMWbBPZtMgzMz5htg8em5oiz fGPHA3ROsH5TXKPSnZPQb1d1dL3fSJc6b3Z0w7Oc8wRzXdY= X-Google-Smtp-Source: ABdhPJyst7NKtJmEVBSqSrPSemQ/s3+Z0ZQkNN/I5r5B3Xeqpq9eX7Isipqh5bs2G+6iBUQodSmkIYvbH3vgQ91fQ/4= X-Received: by 2002:a92:cd8a:0:b0:2ca:9337:2f47 with SMTP id r10-20020a92cd8a000000b002ca93372f47mr8293805ilb.252.1649811289394; Tue, 12 Apr 2022 17:54:49 -0700 (PDT) List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 References: <202204092148.239LmLpD093090@gitrepo.freebsd.org> <7e3c47ac-e2ba-7fab-986e-cdfc1ee78ecc@FreeBSD.org> In-Reply-To: <7e3c47ac-e2ba-7fab-986e-cdfc1ee78ecc@FreeBSD.org> From: Ed Maste Date: Tue, 12 Apr 2022 20:54:37 -0400 Message-ID: Subject: Re: git: eca39864f702 - main - Add sysctl KERN_LOCKF To: John Baldwin Cc: Konstantin Belousov , src-committers , "" , dev-commits-src-main@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4KdPJJ3rKgz4Wwn X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of carpeddiem@gmail.com designates 209.85.166.179 as permitted sender) smtp.mailfrom=carpeddiem@gmail.com X-Spamd-Result: default: False [-2.98 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[carpeddiem]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_FIVE(0.00)[5]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.982]; RCVD_IN_DNSWL_NONE(0.00)[209.85.166.179:from]; MLMMJ_DEST(0.00)[dev-commits-src-all,dev-commits-src-main]; FORGED_SENDER(0.30)[emaste@freebsd.org,carpeddiem@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.166.179:from]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[emaste@freebsd.org,carpeddiem@gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N On Tue, 12 Apr 2022 at 19:11, John Baldwin wrote: > > 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. Yep - this is what prompted this effort. The goal is to provide proper interfaces for everything that lsof used to extract out of /dev/mem. https://reviews.freebsd.org/D34184 https://reviews.freebsd.org/D34323 https://github.com/lsof-org/lsof/pull/184