The nfs_quick_reply() functionality relies on taking a copy of the
authorzoulasc <christos@zoulas.com>
Thu, 3 Mar 2016 18:21:13 +0000 (13:21 -0500)
committerzoulasc <christos@zoulas.com>
Thu, 3 Mar 2016 18:21:13 +0000 (13:21 -0500)
commitee8f0a7dffbd1cd6c829dd6509d7dba3c35727dc
tree3703eeb220480af78c96a5d874b047c71e504397
parent78b98ffb6237cb8ee257b011004b265a55107b3e
The nfs_quick_reply() functionality relies on taking a copy of the
current transport for later use.

The problem with this is the context of the RPC message is kept in
the transport and if any RPC message arrives before nfs_quick_reply()
is called that context will be corrupted.

So add a function get_nfs_xprt() to replace the current transport
with a new one returning the passed in transort so nfs_quick_reply()
can use it later.

A function put_nfs_xprt() is also added (although not really needed
since it just destroys the now unused transport) for completeness.

From: Ian Kent
conf/transp/transp_sockets.c
conf/transp/transp_tli.c
include/am_utils.h