From nobody Thu Aug 24 23:30:40 2023 X-Original-To: dev-commits-src-branches@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 4RWzpn0st9z4rjqw; Thu, 24 Aug 2023 23:30:41 +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 4RWzpn0NDnz4KGK; Thu, 24 Aug 2023 23:30:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692919841; 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=Dc8s5HiFtBMF9g/gdHLzsDy5uaH+DLqPieirlywQg9c=; b=mpRG/Auuzw7/sqgS3AuvFL5o7cY75BTK6RiuIi4G4DPT0v9GsqWIOiOXltR37e0uJRFJw7 LoSWS5ksMLqnGRObCaXPrK4xn39obU1XgMK5hHNxqVWozJ7Ngep1jrIco72+1RfnUK0JCK 7lAIISWOZ6VGDjrYJkUdxwTkmetsYxNvxHAWKtpvqFnf6Z4HVYb9y1CevnK/F7wtZNHOxr fxzaupwTA4fhrIvgzFeT0a9Qe2TTcA3iP07XMQO7vMezeU/z7+TJaWzRJHvThMuQb7r1H2 81n4qEPSX20N+lA0sQXqoj5BuStiKCdU9hYI/d/Liy8gPzgb+WuBauP+nkzCbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692919841; 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=Dc8s5HiFtBMF9g/gdHLzsDy5uaH+DLqPieirlywQg9c=; b=aC23T+ehmfwDS4L9RV9UARc9cgrYLuJ0xWSwZ+wlbjw1dynkzEivg26hSPj0H0T3nLZ7pm gLViCj7sBwJz7lqbkvA2WV8NB226TL0YV2e8/otLgtWtW/K/dVdV7Opvn5PtcFQlqR59OS PpoXxoxutEPGvYsmiKkvh18w+/VrwmbC0aDwt78oeP3yKxTqofvRHno6uoVw7rtnr6xsEG 35Xrs8ltawg5XStLErBHnSKXt8ZTjtToFqnuh+ALcCT9UffZwPCALhTo3tmmBkPeZbx3La DwmgibYvHFRGEXY+ut5GYYRa6UvG+GJiJ7m/AXnD8Mg2MxnAuRhBzuphitLFqg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692919841; a=rsa-sha256; cv=none; b=eE5kpQCKJlDP3oD1fEVcXRg3dwlati3tDVJ/XQk+B3ved4BQClvWU92QnUURjehLn5pmzn IXlI26u6XpWc0VVdYgJWwEFgI9iRVXPF0hDW8qhyqDhqtShZOwkutqKmahtYz1C7w1zc2O qJQMpFQUQ7cWGETlJFsU4YR7BRmGsOEQ7VXxiBhO6APBjkB3Mw0pEa2ndNrkK77aDyHgj7 Nt713ckF/t45vKyuXvkOhjNeI+gbK9oyQpD14/66mGaUurGQEEwsOsL0DXbxp5n61VD2+i zxB40Hd7uF62ozT94dmQuG2t4JvX4wKATAsEkTSQNCuDMblTG2vKTmvfq3X5wA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RWzpm6TCTzmNn; Thu, 24 Aug 2023 23:30:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37ONUeXx002173; Thu, 24 Aug 2023 23:30:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37ONUea3002157; Thu, 24 Aug 2023 23:30:40 GMT (envelope-from git) Date: Thu, 24 Aug 2023 23:30:40 GMT Message-Id: <202308242330.37ONUea3002157@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Guzik Subject: git: 60457d1ea068 - stable/13 - ufs: try to elide the interlock in ufs_itimes List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 60457d1ea0680dfec0efa80832339a7b4fa96160 Auto-Submitted: auto-generated The branch stable/13 has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=60457d1ea0680dfec0efa80832339a7b4fa96160 commit 60457d1ea0680dfec0efa80832339a7b4fa96160 Author: Mateusz Guzik AuthorDate: 2022-09-12 23:20:59 +0000 Commit: Mateusz Guzik CommitDate: 2023-08-24 23:30:34 +0000 ufs: try to elide the interlock in ufs_itimes Reviewed by: kib, mckusick Differential Revision: https://reviews.freebsd.org/D36522 (cherry picked from commit 04f095a49165cf4903fda0f21271be5c6bfa5857) --- 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 8eeb3ac84f6b..a6ca523ae87c 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -188,6 +188,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);