Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2488623lqp; Sun, 24 Mar 2024 23:12:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUIFFMOhclK6CwKvifyMSNGYnJxkOaKBKw0fc9srquOalkc+tOhzJPvLsHJEX48wiqDVLn35fOxy13IAKRp3nGobiBdyJ+C5WUPiKCTJw== X-Google-Smtp-Source: AGHT+IEcDGNe8on57bDh25qID3K2lTmBZIze1q2wuaKkI1lFPW7vGlBpQ+CT5GEhFl3WlNPBKTen X-Received: by 2002:a05:6214:4112:b0:690:c568:8dc9 with SMTP id kc18-20020a056214411200b00690c5688dc9mr9783234qvb.36.1711347157804; Sun, 24 Mar 2024 23:12:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711347157; cv=pass; d=google.com; s=arc-20160816; b=sXC1YceZS7jk9kinqJ8qEMNMk09kOx3WWVzoEH0+U/5kFP2g7AS+EXfLIfsej8OOiu SqkjeIDih65obPRZF1f8aXfPgKw/1YzVHPvqXcfN7brrRM6h3NkTFvBTAJd8swUKNxZu P60K4HEeeRjG+WB6o75AofuiTwc8cnKFtMNF3m4JgfKdjOtgHcGoUpBykgTSAchEp87Y X1QwGRr3zhIwRtwxqM1BtBqdkHNTSmVJKblskicQ/8FckR1oFdPyXxViNoZ1mo922pD6 Kn6dk5gjW5mXEyN85SSLKC1vSglR0GSrzqXNi74iW2hZSHbyl0PyyKw+R4px2Qj6RzD4 mLDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Oo/RQGmf34MZo/HkRSqu4a+QmYYKMg5cZj4QHaokV3w=; fh=eP83VwY2imqUkKC335Vf+S1zDQ2JKOagjMIogzy87iQ=; b=XoNZgMbcvSJ40lZ172sSlgWmIXuDdnXPNT8SuFmmfSiBPY6qeUI9yvNQ6crsbNmRWG dNYHCVSlpahAJ+Y9lSqPmJe6rWNMI/0ydZPaepR/u8w0Bo3K4TRKbQcPuJX17yR8JuXn mpO3gHk7aaTTDGG8v+hiEvJE0g0t1riL8WNVTeuscB1Vt6q5+vwaLC9vc9mDP0FSjfES UR4P+Hy10sqUZGmM6ZUS4TVte4ah8Q3WUDmcNzP+euE93YsN2ulWcITO1VuzEdQJvvQZ +SNhCof0C/PK7Xil1PVBP9JlBAOIOuEQVBB8T9LHJtxRfIlKEGvgv13NiJJhlWcvr1OW ZBzg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DRhVLuqI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-114490-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-114490-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gg3-20020a056214252300b0068efe8cf6dasi7234479qvb.12.2024.03.24.23.12.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 23:12:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-114490-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DRhVLuqI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-114490-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-114490-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8396F1C2BDC5 for ; Mon, 25 Mar 2024 06:12:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0AF8122347A; Sun, 24 Mar 2024 23:47:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DRhVLuqI" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7EED92251E8; Sun, 24 Mar 2024 23:12:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711321936; cv=none; b=puPh7EkeCa3jpBHCisxyspna/yiCO6/bA6KGl8VJTR0e/M+l5Yo0rEnhYKoXYhJzQmY+R0O4mYqXVJmGjmlDOvqvyQN0AZjSHzKcJ11jtCGPR/9NYLZMdQvsAYehezfCSpy685bUXwv73EskLim4azzHjKVEHKG2qyBpust0lW8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711321936; c=relaxed/simple; bh=8XXOns9lt6hyCk9TvaQg011KZvUoFs/LBL8puhHyXhg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tHX/EZfcs6FSNuXGuVaMq8y6Eq7n478+YRzkgw+Hj4hCEf1fp06HA4WRjF4UToHKv8hxZVoUU9rryQMvYXLCzUwFMSWapxr2lihfW/VLXgSS32BiggCy4JRk2lYpi94fntzrLS6s6E1/gmBmbDdrxgu010PkohC+qpkvM/CU/Bk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DRhVLuqI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1297C433A6; Sun, 24 Mar 2024 23:12:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711321935; bh=8XXOns9lt6hyCk9TvaQg011KZvUoFs/LBL8puhHyXhg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DRhVLuqI2vxji8Cf8ezWgDWeKdmtJ9MK7a2jel8musTiAVPUd/PI+myY6aPQ3Nbkh mP5jytQv0xhqn4zzW6LoC7TmXhbWOfoRWMf8rgqvk1b7rO2iAsLCxnnH4+CCvOf+9e TO67f/P4es7okks4nde/e7ky7aheD9xFACbMAoCYykXKndJhKBegoi2NGscfDopUsc dOVG7q2v7SIqrz7CoiZUgshUvxShCHr+zo+qbRVXM+bfcyA1RaAXQSh2E8m0bafOUe HAtMC1QOSNk4BPZ0XzZsShHzrR6ZvjDebtganU4hWYrMNd4g7rbulOv1yqmF5vIalu cu/IiEQ2jUm9Q== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jeff Layton , Chuck Lever , Sasha Levin Subject: [PATCH 6.1 006/451] nfsd: don't open-code clear_and_wake_up_bit Date: Sun, 24 Mar 2024 19:04:42 -0400 Message-ID: <20240324231207.1351418-7-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Jeff Layton [ Upstream commit b8bea9f6cdd7236c7c2238d022145e9b2f8aac22 ] Signed-off-by: Jeff Layton Signed-off-by: Chuck Lever Signed-off-by: Sasha Levin --- fs/nfsd/filecache.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/nfsd/filecache.c b/fs/nfsd/filecache.c index 6e8712bd7c998..5b5d39ec7b010 100644 --- a/fs/nfsd/filecache.c +++ b/fs/nfsd/filecache.c @@ -1174,9 +1174,7 @@ nfsd_file_do_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp, status = nfserr_jukebox; if (status != nfs_ok) nfsd_file_unhash(nf); - clear_bit_unlock(NFSD_FILE_PENDING, &nf->nf_flags); - smp_mb__after_atomic(); - wake_up_bit(&nf->nf_flags, NFSD_FILE_PENDING); + clear_and_wake_up_bit(NFSD_FILE_PENDING, &nf->nf_flags); goto out; } -- 2.43.0