diff options
author | Ricardo Labiaga <Ricardo.Labiaga@netapp.com> | 2009-04-01 09:23:28 -0400 |
---|---|---|
committer | Benny Halevy <bhalevy@panasas.com> | 2009-06-17 17:11:40 -0400 |
commit | dd2b63d049480979016b959abc2d141cdddb1389 (patch) | |
tree | 3b1f9a59b5c0a7c6027ec102a034a4236b41ebd6 /net/sunrpc/clnt.c | |
parent | 281fe15dc1d6ad46992f18b7a6644269ec5f7138 (diff) |
nfs41: Rename rq_received to rq_reply_bytes_recvd
The 'rq_received' member of 'struct rpc_rqst' is used to track when we
have received a reply to our request. With v4.1, the backchannel
can now accept callback requests over the existing connection. Rename
this field to make it clear that it is only used for tracking reply bytes
and not all bytes received on the connection.
Signed-off-by: Ricardo Labiaga <Ricardo.Labiaga@netapp.com>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r-- | net/sunrpc/clnt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index f3e93b8eb90f..5bc2f45bddf0 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -1258,8 +1258,8 @@ call_status(struct rpc_task *task) | |||
1258 | struct rpc_rqst *req = task->tk_rqstp; | 1258 | struct rpc_rqst *req = task->tk_rqstp; |
1259 | int status; | 1259 | int status; |
1260 | 1260 | ||
1261 | if (req->rq_received > 0 && !req->rq_bytes_sent) | 1261 | if (req->rq_reply_bytes_recvd > 0 && !req->rq_bytes_sent) |
1262 | task->tk_status = req->rq_received; | 1262 | task->tk_status = req->rq_reply_bytes_recvd; |
1263 | 1263 | ||
1264 | dprint_status(task); | 1264 | dprint_status(task); |
1265 | 1265 | ||
@@ -1376,7 +1376,7 @@ call_decode(struct rpc_task *task) | |||
1376 | 1376 | ||
1377 | /* | 1377 | /* |
1378 | * Ensure that we see all writes made by xprt_complete_rqst() | 1378 | * Ensure that we see all writes made by xprt_complete_rqst() |
1379 | * before it changed req->rq_received. | 1379 | * before it changed req->rq_reply_bytes_recvd. |
1380 | */ | 1380 | */ |
1381 | smp_rmb(); | 1381 | smp_rmb(); |
1382 | req->rq_rcv_buf.len = req->rq_private_buf.len; | 1382 | req->rq_rcv_buf.len = req->rq_private_buf.len; |
@@ -1417,7 +1417,7 @@ out_retry: | |||
1417 | task->tk_status = 0; | 1417 | task->tk_status = 0; |
1418 | /* Note: rpc_verify_header() may have freed the RPC slot */ | 1418 | /* Note: rpc_verify_header() may have freed the RPC slot */ |
1419 | if (task->tk_rqstp == req) { | 1419 | if (task->tk_rqstp == req) { |
1420 | req->rq_received = req->rq_rcv_buf.len = 0; | 1420 | req->rq_reply_bytes_recvd = req->rq_rcv_buf.len = 0; |
1421 | if (task->tk_client->cl_discrtry) | 1421 | if (task->tk_client->cl_discrtry) |
1422 | xprt_conditional_disconnect(task->tk_xprt, | 1422 | xprt_conditional_disconnect(task->tk_xprt, |
1423 | req->rq_connect_cookie); | 1423 | req->rq_connect_cookie); |