aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/sunrpc/xprtrdma/svc_rdma_transport.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2019-08-16 17:48:36 -0400
committerJ. Bruce Fields <bfields@redhat.com>2019-08-19 10:59:28 -0400
commitd6dfe43ec6062beea5ba1172b957e74a13c95b86 (patch)
treecbe54abb9bc218fbb9b5fdb830a8d0706a38e9cb /net/sunrpc/xprtrdma/svc_rdma_transport.c
parentnfsd: Remove unnecessary NULL checks (diff)
downloadwireguard-linux-d6dfe43ec6062beea5ba1172b957e74a13c95b86.tar.xz
wireguard-linux-d6dfe43ec6062beea5ba1172b957e74a13c95b86.zip
svcrdma: Remove svc_rdma_wq
Clean up: the system workqueue will work just as well. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/svc_rdma_transport.c')
-rw-r--r--net/sunrpc/xprtrdma/svc_rdma_transport.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sunrpc/xprtrdma/svc_rdma_transport.c b/net/sunrpc/xprtrdma/svc_rdma_transport.c
index 3fe665152d95..18d6eb3686e7 100644
--- a/net/sunrpc/xprtrdma/svc_rdma_transport.c
+++ b/net/sunrpc/xprtrdma/svc_rdma_transport.c
@@ -630,8 +630,9 @@ static void svc_rdma_free(struct svc_xprt *xprt)
{
struct svcxprt_rdma *rdma =
container_of(xprt, struct svcxprt_rdma, sc_xprt);
+
INIT_WORK(&rdma->sc_work, __svc_rdma_free);
- queue_work(svc_rdma_wq, &rdma->sc_work);
+ schedule_work(&rdma->sc_work);
}
static int svc_rdma_has_wspace(struct svc_xprt *xprt)