Skip to content

Commit 0b96c75

Browse files
Olga KornievskaiaAnna Schumaker
authored andcommitted
NFSv4.2: make LAYOUTSTATS and LAYOUTERROR MOVEABLE
LAYOUTSTATS and LAYOUTERROR should be marked MOVEABLE for when we need to move tasks off a non-functional transport. Signed-off-by: Olga Kornievskaia <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent 668135b commit 0b96c75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/nfs/nfs42proc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ int nfs42_proc_layoutstats_generic(struct nfs_server *server,
861861
.rpc_message = &msg,
862862
.callback_ops = &nfs42_layoutstat_ops,
863863
.callback_data = data,
864-
.flags = RPC_TASK_ASYNC,
864+
.flags = RPC_TASK_ASYNC | RPC_TASK_MOVEABLE,
865865
};
866866
struct rpc_task *task;
867867

@@ -1016,7 +1016,7 @@ int nfs42_proc_layouterror(struct pnfs_layout_segment *lseg,
10161016
struct rpc_task_setup task_setup = {
10171017
.rpc_message = &msg,
10181018
.callback_ops = &nfs42_layouterror_ops,
1019-
.flags = RPC_TASK_ASYNC,
1019+
.flags = RPC_TASK_ASYNC | RPC_TASK_MOVEABLE,
10201020
};
10211021
unsigned int i;
10221022

0 commit comments

Comments
 (0)