Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp385528lqs; Thu, 13 Jun 2024 12:55:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUvLs9HKiMp2VZQONkoH8+eWckUxIH+q6GwoG1AgTHVIryDb2I+pDfnqZBmwUTgAfeUTT9YMWefR1+uVOcOh2bYuFjE28kQBG5LFZ89aA== X-Google-Smtp-Source: AGHT+IG3yH1lBQ1N3yw4Z7vDduX/wT5mh5Jx4yj58lENjRgOkHNo50zii53mNWElb9f01Oz1fVah X-Received: by 2002:a0c:f68b:0:b0:6b0:8392:e1f with SMTP id 6a1803df08f44-6b2afc764a7mr6182426d6.9.1718308505766; Thu, 13 Jun 2024 12:55:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718308505; cv=pass; d=google.com; s=arc-20160816; b=xx2S3/tuhpqpWPmg2Ou6tVXs4iGX+rcTl4RNH1+T9l6taUv+zBYGzFRHy7XY/ahZza 3ldPxc6IfZgotsbdJfLHJLK5SOqbjKYOSSy+ZGd+Q0ajc5JgS62+Pe2/p2c1v+C4SbIF n1I3XF3bCtmWAPqqsm1OEQUCl+WTj9M4X/mkDsV1y55Kl/1F37SJmJlR7hDGmoG2K+Yo PMGnHuZAJf+Mc4GFZYLWXJcvXC7W2kfbx6DA514rF3NoOBO9wV8QsqQ6GamcnJPrXU8P N0Q360X03bkgbd/FUGkFP6HWj9qbra4vkh1f+ytb+1GhA5m8SxGUjsg1gORI+fYPbOZ9 zTbA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=s12nTUlknE1IWjQdqUXPcI6l/gcQ4MLbIpt+nzp78L8=; fh=+uWgxsSWHuCSXgmhevxSvZ4JDNPgzz87/v2C1+u0DeU=; b=VSRxoy1dtS2sU5XpAdXG+/blemPzGCfHZ270/J6z+YOopcOKOA1LEbjnRHaw3BmHdF zzx5cM2ZkzA7dFjKNBaszVlhQkrWjZpymxkyxhRV/9GMS+LhZyuIa0DemsTOxXYIQ7Au kFomvRgdUkbowp172YKzQA5H+ktYhlro/XXGedcCeYZpd2BWcXumv1R9PZ5AEV0YuEfY xvhKRRVhe8F+JSvWhVZzvGOBNlD+Dbxv6ccEfirrq/jwtjse0LHtDmoR7s+Tb9rztgMK m+/YawTwrST2LEy48iTjqBNDELjytmgL2RZ1oXI7kIP3apR5yOsMP6+Pw2CaP5GhPRUP 2RbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CB1VieHK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3791-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3791-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 6a1803df08f44-6b2a5b7cef7si20747806d6.523.2024.06.13.12.55.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 12:55:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3791-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=CB1VieHK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3791-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3791-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 665721C238A7 for ; Thu, 13 Jun 2024 19:55:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 866F46F073; Thu, 13 Jun 2024 19:55:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CB1VieHK" X-Original-To: linux-nfs@vger.kernel.org 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 622A76E5ED for ; Thu, 13 Jun 2024 19:55:03 +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=1718308503; cv=none; b=XKXoG078RJrehnDkyGk5GNIQm1sveS6IUXw6u377M8vnouC4TgqXgpAmFMffBzLYLK/cFG7pj3wNw4baxB8L1i0ifjZvuJDjzidZY5FmCpjZayJYBEES2QjZnHx3UZekriZyy8bVsj60kRE8K7QomY9xmlcR7No6paGcn0BccBA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718308503; c=relaxed/simple; bh=qHVqWLcahKdgxYPKezlDK4auYnKQtwu151xKVA1ui+w=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=apjNhabEBm695xsLb2ORXuMNwzplNaJDrbdLE4v+KQMIYZmjUCJGXBnZoRcJnhyrjXOZNR9XVCNMiEgPklpKLbTykrqXFRBzILxgx0Gu/L8jlrMB0UQa7hkm7bqYd/znHgKu8QQtWVaItVgx4Dyt3r2cB2b7muFC8R83cltQnV0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CB1VieHK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 714F5C2BBFC; Thu, 13 Jun 2024 19:55:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718308502; bh=qHVqWLcahKdgxYPKezlDK4auYnKQtwu151xKVA1ui+w=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=CB1VieHKSkQynipsHDGEPWJkq9qoou5lo/asY/+94AMyOBbCa6fQdKt3MBfDn2oB7 zC3xE9JQ/8ycR0UnVpe64UVwZ1LOWX15FNPD+7iUjsktOEpgTMSbBCu6K66hE328/j ggFc0TPmqwNPi+neDPabxog1syOUa/NguFhNly0aCsg9p12PgAdVV/r0NL51we7Ho8 hT8sETQu6bgiVPA6H0WJkAKSn5jnw94g9uGZEGTvYujEGQ3e9b1P5LMuaEfAgFwsxX Oj951b9PSjzBZQobilRbAj/Myx8cf1mlFkW/IGDQZtRka9PIdG4f+zZ4ugEpA/nKaY 1EdB//4/nTh0g== Message-ID: Subject: Re: [PATCH 1/3] nfs: Drop pointless check from nfs_commit_release_pages() From: Jeff Layton To: Jan Kara , Trond Myklebust Cc: linux-nfs@vger.kernel.org, Neil Brown Date: Thu, 13 Jun 2024 15:55:01 -0400 In-Reply-To: <20240613082821.849-1-jack@suse.cz> References: <20240612153022.25454-1-jack@suse.cz> <20240613082821.849-1-jack@suse.cz> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Thu, 2024-06-13 at 10:28 +0200, Jan Kara wrote: > nfss->writeback is updated only when we are ending page writeback and > at > that moment we also clear nfss->write_congested. So there's no point > in > rechecking congestion state in nfs_commit_release_pages(). Drop the > pointless check. >=20 > Signed-off-by: Jan Kara > --- > =C2=A0fs/nfs/write.c | 4 ---- > =C2=A01 file changed, 4 deletions(-) >=20 > diff --git a/fs/nfs/write.c b/fs/nfs/write.c > index 5fc12a721ec3..c6255d7edd3c 100644 > --- a/fs/nfs/write.c > +++ b/fs/nfs/write.c > @@ -1837,7 +1837,6 @@ static void nfs_commit_release_pages(struct > nfs_commit_data *data) > =C2=A0 struct nfs_page *req; > =C2=A0 int status =3D data->task.tk_status; > =C2=A0 struct nfs_commit_info cinfo; > - struct nfs_server *nfss; > =C2=A0 struct folio *folio; > =C2=A0 > =C2=A0 while (!list_empty(&data->pages)) { > @@ -1880,9 +1879,6 @@ static void nfs_commit_release_pages(struct > nfs_commit_data *data) > =C2=A0 /* Latency breaker */ > =C2=A0 cond_resched(); > =C2=A0 } > - nfss =3D NFS_SERVER(data->inode); > - if (atomic_long_read(&nfss->writeback) < > NFS_CONGESTION_OFF_THRESH) > - nfss->write_congested =3D 0; > =C2=A0 > =C2=A0 nfs_init_cinfo(&cinfo, data->inode, data->dreq); > =C2=A0 nfs_commit_end(cinfo.mds); Reviewed-by: Jeff Layton