1 Mar 2005 05:53
Re: [PATCH 33 of 52] nfsd4: nfs4_cb_recall cleanup
Neil Brown <neilb <at> cse.unsw.edu.au>
2005-03-01 04:53:45 GMT
2005-03-01 04:53:45 GMT
On Thursday February 24, bfields <at> fieldses.org wrote:
>
> Miscellaneous cleanup including:
> remove recursion
> use a local variable instead of dl_recall_cnt
While this is probably a lot better than it was, I feel it is still a
bit too clumsy....
> + do {
> + status = rpc_call_sync(clnt, &msg, RPC_TASK_SOFT);
> + switch (status) {
> + case 0:
> + goto out;
> + case -EIO:
> + /* Network partition? */
> + if (retries == 0) {
> + atomic_set(&clp->cl_callback.cb_set, 0);
> + goto out;
> + }
> + break;
> + case -EBADHANDLE:
> + case -NFS4ERR_BAD_STATEID:
> + if (retries == 0)
> + goto out;
> + /* The client may have gotten the recall before the
> + * original delegation. */
> + break;
> + default:
> + goto out;
> + }
(Continue reading)
RSS Feed