sysfs.c (9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e) sysfs.c (75eb6af7acdf566c68d61e98e67ee2f235201c02)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (c) 2020 Anna Schumaker <Anna.Schumaker@Netapp.com>
4 */
5#include <linux/sunrpc/clnt.h>
6#include <linux/kobject.h>
7#include <linux/sunrpc/addr.h>
8#include <linux/sunrpc/xprtsock.h>

--- 225 unchanged lines hidden (view full) ---

234 char *dst_addr;
235 int port;
236 struct xprt_addr *saved_addr;
237 size_t buf_len;
238
239 if (!xprt)
240 return 0;
241 if (!(xprt->xprt_class->ident == XPRT_TRANSPORT_TCP ||
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (c) 2020 Anna Schumaker <Anna.Schumaker@Netapp.com>
4 */
5#include <linux/sunrpc/clnt.h>
6#include <linux/kobject.h>
7#include <linux/sunrpc/addr.h>
8#include <linux/sunrpc/xprtsock.h>

--- 225 unchanged lines hidden (view full) ---

234 char *dst_addr;
235 int port;
236 struct xprt_addr *saved_addr;
237 size_t buf_len;
238
239 if (!xprt)
240 return 0;
241 if (!(xprt->xprt_class->ident == XPRT_TRANSPORT_TCP ||
242 xprt->xprt_class->ident == XPRT_TRANSPORT_TCP_TLS ||
242 xprt->xprt_class->ident == XPRT_TRANSPORT_RDMA)) {
243 xprt_put(xprt);
244 return -EOPNOTSUPP;
245 }
246
247 if (wait_on_bit_lock(&xprt->state, XPRT_LOCKED, TASK_KILLABLE)) {
248 count = -EINTR;
249 goto out_put;

--- 377 unchanged lines hidden ---
243 xprt->xprt_class->ident == XPRT_TRANSPORT_RDMA)) {
244 xprt_put(xprt);
245 return -EOPNOTSUPP;
246 }
247
248 if (wait_on_bit_lock(&xprt->state, XPRT_LOCKED, TASK_KILLABLE)) {
249 count = -EINTR;
250 goto out_put;

--- 377 unchanged lines hidden ---