]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
NFSv4.2: mark OFFLOAD_CANCEL MOVEABLE
authorOlga Kornievskaia <okorniev@redhat.com>
Fri, 13 Dec 2024 16:52:01 +0000 (11:52 -0500)
committerAnna Schumaker <anna.schumaker@oracle.com>
Tue, 21 Jan 2025 16:34:50 +0000 (11:34 -0500)
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>
fs/nfs/nfs42proc.c

index 9d716907cf304dfaeaff4a712a990c70e42043ce..f01a42965254f2ee2b52fd8d30a5821c4a14907e 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;