[PATCH] RPC: rename the sockstate field
Clean-up: get rid of a name reference to sockets in the generic parts of the RPC client by renaming the sockstate field in the rpc_xprt structure. Test-plan: Compile kernel with CONFIG_NFS enabled. Version: Thu, 11 Aug 2005 16:05:53 -0400 Signed-off-by: Chuck Lever <cel@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
committed by
Trond Myklebust
parent
5dc07727f8
commit
2226feb6bc
@@ -925,9 +925,7 @@ out:
|
||||
else
|
||||
rpc_wake_up(&xprt->pending);
|
||||
out_clear:
|
||||
smp_mb__before_clear_bit();
|
||||
clear_bit(XPRT_CONNECTING, &xprt->sockstate);
|
||||
smp_mb__after_clear_bit();
|
||||
xprt_clear_connecting(xprt);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -940,7 +938,7 @@ static void xs_connect(struct rpc_task *task)
|
||||
{
|
||||
struct rpc_xprt *xprt = task->tk_xprt;
|
||||
|
||||
if (!test_and_set_bit(XPRT_CONNECTING, &xprt->sockstate)) {
|
||||
if (!xprt_test_and_set_connecting(xprt)) {
|
||||
if (xprt->sock != NULL) {
|
||||
dprintk("RPC: xs_connect delayed xprt %p\n", xprt);
|
||||
schedule_delayed_work(&xprt->sock_connect,
|
||||
|
Reference in New Issue
Block a user