[pnfs] [PATCH 02/23] 2.6-latest pnfs client nfs4_async_handle_error for data server

Benny Halevy bhalevy at panasas.com
Sun Dec 23 04:33:53 EST 2007


On Dec. 13, 2007, 22:51 +0200, andros at umich.edu wrote:
<snip>

> @@ -3495,12 +3493,20 @@ nfs4_async_handle_error(struct rpc_task *task, const struct nfs_server *server)
>  		case -NFS4ERR_RETRY_UNCACHED_REP:
>  		case -NFS4ERR_TOO_MANY_OPS:
>  		case -NFS4ERR_OP_NOT_IN_SESSION:
> +		{
> +			struct nfs4_session *session = server->session;
> +
> +#ifdef CONFIG_PNFS
> +			if (clp->cl_ds_session)
> +				session = clp->cl_ds_session;
> +#endif /* CONFIG_PNFS */
>  			//ret = nfs41_recover_session_async(task, server);
>  			//if (ret)
>  			//	return ret;
>  			nfs41_set_session_expired(server->session);
			                          ^^^^^^^^^^^^^^^
isn't that supposed to be "session" now?

>  			task->tk_status = 0;
>  			return -EAGAIN;
> +		}
>  #endif			
>  		case -NFS4ERR_DELAY:
>  			nfs_inc_server_stats((struct nfs_server *) server,

Also, Andy, I'm going to split this hunk into a pnfs only patch since the rest
is going as a nfs41 (sessions) patch.





More information about the pNFS mailing list