Skip to content

Commit c627d31

Browse files
committed
SUNRPC: Cleanup to remove xs_tcp_close()
xs_tcp_close() is now just a call to xs_tcp_shutdown(), so remove it, and replace the entry in xs_tcp_ops. Suggested-by: Anna Schumaker <anna.schumaker@netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
1 parent 4c21462 commit c627d31

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎net/sunrpc/xprtsock.c‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -863,11 +863,6 @@ static void xs_close(struct rpc_xprt *xprt)
863863
xprt_disconnect_done(xprt);
864864
}
865865

866-
static void xs_tcp_close(struct rpc_xprt *xprt)
867-
{
868-
xs_tcp_shutdown(xprt);
869-
}
870-
871866
static void xs_xprt_free(struct rpc_xprt *xprt)
872867
{
873868
xs_free_peer_addresses(xprt);
@@ -2500,7 +2495,7 @@ static struct rpc_xprt_ops xs_tcp_ops = {
25002495
.buf_free = rpc_free,
25012496
.send_request = xs_tcp_send_request,
25022497
.set_retrans_timeout = xprt_set_retrans_timeout_def,
2503-
.close = xs_tcp_close,
2498+
.close = xs_tcp_shutdown,
25042499
.destroy = xs_destroy,
25052500
.print_stats = xs_tcp_print_stats,
25062501
};

0 commit comments

Comments
 (0)