[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4bb862cd-473f-4c38-91cb-d988314735ef@oracle.com>
Date: Tue, 4 Mar 2025 10:29:09 -0500
From: Chuck Lever <chuck.lever@...cle.com>
To: Jeff Layton <jlayton@...nel.org>, Neil Brown <neilb@...e.de>,
Olga Kornievskaia <okorniev@...hat.com>, Dai Ngo <Dai.Ngo@...cle.com>,
Tom Talpey <tom@...pey.com>
Cc: linux-nfs@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 4/5] nfsd: clean up if statement in
nfsd4_close_open_stateid()
On 3/4/25 10:24 AM, Jeff Layton wrote:
> On Mon, 2025-03-03 at 12:26 -0500, Jeff Layton wrote:
>> Just set unhashed to false in the one case where we return that
>> explicitly, and drop the else.
>>
>> Signed-off-by: Jeff Layton <jlayton@...nel.org>
>> ---
>> fs/nfsd/nfs4state.c | 9 ++++-----
>> 1 file changed, 4 insertions(+), 5 deletions(-)
>>
>> diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
>> index a7bac93445e2fdbe743b77e66238d652094907cb..1f3e9d42fcd784ea8d101ad3549702a30dfe9058 100644
>> --- a/fs/nfsd/nfs4state.c
>> +++ b/fs/nfsd/nfs4state.c
>> @@ -7644,12 +7644,11 @@ static bool nfsd4_close_open_stateid(struct nfs4_ol_stateid *s)
>> list_for_each_entry(stp, &reaplist, st_locks)
>> nfs4_free_cpntf_statelist(clp->net, &stp->st_stid);
>> free_ol_stateid_reaplist(&reaplist);
>> - return false;
>> - } else {
>> - spin_unlock(&clp->cl_lock);
>> - free_ol_stateid_reaplist(&reaplist);
>> - return unhashed;
>> + unhashed = false;
>> }
>> + spin_unlock(&clp->cl_lock);
>> + free_ol_stateid_reaplist(&reaplist);
>> + return unhashed;
>> }
>>
>> /*
>>
>
> My apologies, Chuck. This patch has a bug in it. Can you drop it from
> nfsd-testing? I may or may not send a replacement.
Done.
--
Chuck Lever
Powered by blists - more mailing lists