]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSD: Never decrement pending_async_copies on error
authorChuck Lever <chuck.lever@oracle.com>
Tue, 19 Nov 2024 00:47:32 +0000 (19:47 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:47:40 +0000 (19:47 +0100)
commited98d26021db0fe62c327aa9f5e57a90bff3fa94
tree953a5149800d6eda25427d47a01b2ddf99d8ca9d
parent059434d23c4578d9d02efb92d848ea21bc640112
NFSD: Never decrement pending_async_copies on error

[ Upstream commit 8286f8b622990194207df9ab852e0f87c60d35e9 ]

The error flow in nfsd4_copy() calls cleanup_async_copy(), which
already decrements nn->pending_async_copies.

Reported-by: Olga Kornievskaia <okorniev@redhat.com>
Fixes: aadc3bbea163 ("NFSD: Limit the number of concurrent async COPY operations")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfs4proc.c