]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
NFSv4.2: mark OFFLOAD_CANCEL MOVEABLE
authorOlga Kornievskaia <okorniev@redhat.com>
Fri, 13 Dec 2024 16:52:01 +0000 (11:52 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Feb 2025 09:02:07 +0000 (10:02 +0100)
[ Upstream commit 668135b9348c53fd205f5e07d11e82b10f31b55b ]

OFFLOAD_CANCEL should be marked MOVEABLE for when we need to move
tasks off a non-functional transport.

Fixes: c975c2092657 ("NFS send OFFLOAD_CANCEL when COPY killed")
Signed-off-by: Olga Kornievskaia <okorniev@redhat.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/nfs42proc.c

index 531c9c20ef1d1b383b28d00b7dc8d890990ff2c9..9f0d69e6526443d48d48000f174e993b450399b7 100644 (file)
@@ -552,7 +552,7 @@ static int nfs42_do_offload_cancel_async(struct file *dst,
                .rpc_message = &msg,
                .callback_ops = &nfs42_offload_cancel_ops,
                .workqueue = nfsiod_workqueue,
-               .flags = RPC_TASK_ASYNC,
+               .flags = RPC_TASK_ASYNC | RPC_TASK_MOVEABLE,
        };
        int status;