From nobody Wed Sep 14 18:12:22 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 4MST2H0CV9z4bmLD; Wed, 14 Sep 2022 18:12:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MST2G6s5dz3WfB; Wed, 14 Sep 2022 18:12:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663179143; 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; bh=fwd7iz6xqUyCcmvr3VsmefbFdO38W+JZ5musaRbUVAM=; b=oYtRXKcHrIq/mfFLA/VjZ15ciC8+CYgueiAXHdKZCuWIQFICBngx7ohveV7IDgFXU5b0kC eiaRPxFQEpVk+9LHluMlmd032eyT2eszFFqLyK6X37iZk+4RT/L8Udlu2FUTEEJj6AmiOB 0MDOVK/DNgzxAZ/esQ6gNmXcIkdvBULOtV9An4lkVhnGPjB8Jyhp9qNOYtqqgQsRzcFe1y dW+KMOPnFIVd8GCHGfHaA1OZAiwq1/3TRvNU0KKXTV0n3mq4/WOHvc531/CdAPuubD8Piz DAcDkcaip3wtrqimI0hgOShWSb8LhU2BgCj/jKx2wPyAR3E4avlzFa9Cc9HFPQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MST2G5d6VzlT0; Wed, 14 Sep 2022 18:12:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 28EICMwd084391; Wed, 14 Sep 2022 18:12:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28EICMnp084390; Wed, 14 Sep 2022 18:12:22 GMT (envelope-from git) Date: Wed, 14 Sep 2022 18:12:22 GMT Message-Id: <202209141812.28EICMnp084390@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: 04f095a49165 - main - ufs: try to elide the interlock in ufs_itimes 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 04f095a49165cf4903fda0f21271be5c6bfa5857 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663179143; 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; bh=fwd7iz6xqUyCcmvr3VsmefbFdO38W+JZ5musaRbUVAM=; b=MhmdSGQT2UE83Nn+tIPnAYd3lFK1TXSqn/AyN9kbxNDGaaxtR5KNLwbLeGTBiW5TQwoqeb zc7ovr9ib9QgB3DseZq9IGQhHU3WSoMH3Aj6kkQf5IJmGXWN4gCfRu1QzPN9of1PFFmny/ q2NwO4C9sGHTsaH/unzeSVIkCH6FwPXa+OcHCdOk4M8kXybCk5N3mYbqpmOydu4gYX9wCe LlmQMULIVjJGQLNoiAs/7XPAdnE8rkNZM25SzE3r6D6xAPTVzYcxfFbvr6SNNcsde9b+GX 8q9AduLYkl++BXOmWH6dgS3JywKW+NSId9x27+bnyahJFbaHOTJPZ2eCKLqinQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663179143; a=rsa-sha256; cv=none; b=Gw+efzhwo3PchoNAvC225EcS9P2RC6SyAjdMpCIXjsjL9XAdZcLAcuMBNbw6eZ4mi0QlEB WpJYwbTED3qc/wT8HZDVh3UZfF+469JY89vRq8EZKOpVlpvE2LJXz9SVZJN0Aw6muKn+dw AnKi4fWJkl93E5iJtg+Z0Jc5sNqQPZmzTkb5nT67573uDDcBNtJoACHXKB7ykoXhbJxi7X Abdjt3rc+W4WGItIAfzrt+88PBrr+HOX4pqRNU8jPsKNGohujnTTAQBEdDc/dJF7OlusId PWs7CTbISzHwfXwFcUvkcOEPs70UByMPkYx2URFKA6nLMN5T8xXVUd18qttubg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=04f095a49165cf4903fda0f21271be5c6bfa5857 commit 04f095a49165cf4903fda0f21271be5c6bfa5857 Author: Mateusz Guzik AuthorDate: 2022-09-12 23:20:59 +0000 Commit: Mateusz Guzik CommitDate: 2022-09-14 18:12:03 +0000 ufs: try to elide the interlock in ufs_itimes Reviewed by: kib, mckusick Differential Revision: https://reviews.freebsd.org/D36522 --- sys/ufs/ufs/ufs_vnops.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index 9f1fe0409483..af01fb37fe53 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -190,6 +190,11 @@ ufs_itimes_locked(struct vnode *vp) void ufs_itimes(struct vnode *vp) { + struct inode *ip; + + ip = VTOI(vp); + if ((ip->i_flag & (IN_ACCESS | IN_CHANGE | IN_UPDATE)) == 0) + return; VI_LOCK(vp); ufs_itimes_locked(vp);