]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-5.15/nfsd-demote-a-warn-to-a-pr_warn.patch
Fixes for 5.15
[thirdparty/kernel/stable-queue.git] / queue-5.15 / nfsd-demote-a-warn-to-a-pr_warn.patch
1 From 6b1af4bddedbd7e133775c9f6baceb42eb58b4d3 Mon Sep 17 00:00:00 2001
2 From: Sasha Levin <sashal@kernel.org>
3 Date: Fri, 8 Jul 2022 14:23:45 -0400
4 Subject: NFSD: Demote a WARN to a pr_warn()
5
6 From: Chuck Lever <chuck.lever@oracle.com>
7
8 [ Upstream commit ca3f9acb6d3faf78da2b63324f7c737dbddf7f69 ]
9
10 The call trace doesn't add much value, but it sure is noisy.
11
12 Reviewed-by: Jeff Layton <jlayton@kernel.org>
13 Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
14 ---
15 fs/nfsd/nfs4proc.c | 6 +++---
16 1 file changed, 3 insertions(+), 3 deletions(-)
17
18 diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c
19 index d70c4e78f0b3f..15991eb9b8d8c 100644
20 --- a/fs/nfsd/nfs4proc.c
21 +++ b/fs/nfsd/nfs4proc.c
22 @@ -630,9 +630,9 @@ nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
23 }
24
25 status = nfsd4_process_open2(rqstp, resfh, open);
26 - WARN(status && open->op_created,
27 - "nfsd4_process_open2 failed to open newly-created file! status=%u\n",
28 - be32_to_cpu(status));
29 + if (status && open->op_created)
30 + pr_warn("nfsd4_process_open2 failed to open newly-created file: status=%u\n",
31 + be32_to_cpu(status));
32 if (reclaim && !status)
33 nn->somebody_reclaimed = true;
34 out:
35 --
36 2.43.0
37