SUNRPC: Initialize rpc_rqst outside of xprt->reserve_lock
authorChuck Lever <chuck.lever@oracle.com>
Fri, 4 May 2018 19:34:53 +0000 (15:34 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 7 May 2018 13:20:03 +0000 (09:20 -0400)
commit37ac86c3a76c113619b7d9afe0251bbfc04cb80a
treefe57a9458217fd9d73e585a620914b44a4655316
parent914fcad9873cbd46e3a4c3c31551b98b15a49079
SUNRPC: Initialize rpc_rqst outside of xprt->reserve_lock

alloc_slot is a transport-specific op, but initializing an rpc_rqst
is common to all transports. In addition, the only part of initial-
izing an rpc_rqst that needs serialization is getting a fresh XID.

Move rpc_rqst initialization to common code in preparation for
adding a transport-specific alloc_slot to xprtrdma.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/linux/sunrpc/xprt.h
net/sunrpc/clnt.c
net/sunrpc/xprt.c