NFSv4: Exit without Oopsing from close when servers send us crazy errors. If retrying the request is not an option, we should just set state->state and be done with it. Signed-off-by: Trond Myklebust --- nfs4proc.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.11/fs/nfs/nfs4proc.c =================================================================== --- linux-2.6.11.orig/fs/nfs/nfs4proc.c +++ linux-2.6.11/fs/nfs/nfs4proc.c @@ -682,7 +682,6 @@ static void nfs4_close_done(struct rpc_t nfs4_increment_seqid(task->tk_status, sp); switch (task->tk_status) { case 0: - state->state = calldata->arg.open_flags; memcpy(&state->stateid, &calldata->res.stateid, sizeof(state->stateid)); break; @@ -697,6 +696,7 @@ static void nfs4_close_done(struct rpc_t return; } } + state->state = calldata->arg.open_flags; nfs4_put_open_state(state); up(&sp->so_sema); nfs4_put_state_owner(sp);