NFSD: Never decrement pending_async_copies on error
authorChuck Lever <chuck.lever@oracle.com>
Tue, 29 Oct 2024 19:27:19 +0000 (15:27 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Wed, 30 Oct 2024 18:12:16 +0000 (14:12 -0400)
commit8286f8b622990194207df9ab852e0f87c60d35e9
treec46b039e8685c4947c0c488918f3ea10edd13895
parent63fab04cbd0f96191b6e5beedc3b643b01c15889
NFSD: Never decrement pending_async_copies on error

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>
fs/nfsd/nfs4proc.c