diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-01-03 03:55:11 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-01-06 14:58:42 -0500 |
commit | 24ac23ab88df5b21b5b2df8cde748bf99b289099 (patch) | |
tree | e5e599fc55fc1744284077b320f3541a3658b958 /fs/nfs/nfs4xdr.c | |
parent | e60859ac0e50f660d23b72e42e05f58757dcfeff (diff) |
NFSv4: Convert open() into an asynchronous RPC call
OPEN is a stateful operation, so we must ensure that it always
completes. In order to allow users to interrupt the operation,
we need to make the RPC call asynchronous, and then wait on
completion (or cancel).
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4xdr.c')
-rw-r--r-- | fs/nfs/nfs4xdr.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index fbbace8a30c4..db2bcf722f91 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c | |||
@@ -1499,9 +1499,6 @@ static int nfs4_xdr_enc_open(struct rpc_rqst *req, uint32_t *p, struct nfs_opena | |||
1499 | }; | 1499 | }; |
1500 | int status; | 1500 | int status; |
1501 | 1501 | ||
1502 | status = nfs_wait_on_sequence(args->seqid, req->rq_task); | ||
1503 | if (status != 0) | ||
1504 | goto out; | ||
1505 | xdr_init_encode(&xdr, &req->rq_snd_buf, p); | 1502 | xdr_init_encode(&xdr, &req->rq_snd_buf, p); |
1506 | encode_compound_hdr(&xdr, &hdr); | 1503 | encode_compound_hdr(&xdr, &hdr); |
1507 | status = encode_putfh(&xdr, args->fh); | 1504 | status = encode_putfh(&xdr, args->fh); |