SUNRPC: Cleanup to remove remaining uses of XPRT_CONNECTION_ABORT
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
parent
9cbc94fb06
commit
505936f59f
|
@ -360,7 +360,6 @@ void xprt_unlock_connect(struct rpc_xprt *, void *);
|
||||||
#define XPRT_BOUND (4)
|
#define XPRT_BOUND (4)
|
||||||
#define XPRT_BINDING (5)
|
#define XPRT_BINDING (5)
|
||||||
#define XPRT_CLOSING (6)
|
#define XPRT_CLOSING (6)
|
||||||
#define XPRT_CONNECTION_ABORT (7)
|
|
||||||
#define XPRT_CONNECTION_CLOSE (8)
|
#define XPRT_CONNECTION_CLOSE (8)
|
||||||
#define XPRT_CONGESTED (9)
|
#define XPRT_CONGESTED (9)
|
||||||
|
|
||||||
|
|
|
@ -804,7 +804,6 @@ static void xs_error_report(struct sock *sk)
|
||||||
static void xs_sock_reset_connection_flags(struct rpc_xprt *xprt)
|
static void xs_sock_reset_connection_flags(struct rpc_xprt *xprt)
|
||||||
{
|
{
|
||||||
smp_mb__before_atomic();
|
smp_mb__before_atomic();
|
||||||
clear_bit(XPRT_CONNECTION_ABORT, &xprt->state);
|
|
||||||
clear_bit(XPRT_CONNECTION_CLOSE, &xprt->state);
|
clear_bit(XPRT_CONNECTION_CLOSE, &xprt->state);
|
||||||
clear_bit(XPRT_CLOSE_WAIT, &xprt->state);
|
clear_bit(XPRT_CLOSE_WAIT, &xprt->state);
|
||||||
clear_bit(XPRT_CLOSING, &xprt->state);
|
clear_bit(XPRT_CLOSING, &xprt->state);
|
||||||
|
@ -1904,7 +1903,6 @@ static int xs_local_setup_socket(struct sock_xprt *transport)
|
||||||
struct socket *sock;
|
struct socket *sock;
|
||||||
int status = -EIO;
|
int status = -EIO;
|
||||||
|
|
||||||
clear_bit(XPRT_CONNECTION_ABORT, &xprt->state);
|
|
||||||
status = __sock_create(xprt->xprt_net, AF_LOCAL,
|
status = __sock_create(xprt->xprt_net, AF_LOCAL,
|
||||||
SOCK_STREAM, 0, &sock, 1);
|
SOCK_STREAM, 0, &sock, 1);
|
||||||
if (status < 0) {
|
if (status < 0) {
|
||||||
|
@ -2149,7 +2147,6 @@ static void xs_tcp_setup_socket(struct work_struct *work)
|
||||||
int status = -EIO;
|
int status = -EIO;
|
||||||
|
|
||||||
if (!sock) {
|
if (!sock) {
|
||||||
clear_bit(XPRT_CONNECTION_ABORT, &xprt->state);
|
|
||||||
sock = xs_create_sock(xprt, transport,
|
sock = xs_create_sock(xprt, transport,
|
||||||
xs_addr(xprt)->sa_family, SOCK_STREAM,
|
xs_addr(xprt)->sa_family, SOCK_STREAM,
|
||||||
IPPROTO_TCP, true);
|
IPPROTO_TCP, true);
|
||||||
|
|
Loading…
Reference in New Issue