The nfs_quick_reply() functionality relies on taking a copy of the
authorzoulasc <christos@zoulas.com>
Thu, 3 Mar 2016 18:30:29 +0000 (13:30 -0500)
committerzoulasc <christos@zoulas.com>
Thu, 3 Mar 2016 18:30:29 +0000 (13:30 -0500)
commitda31b6520c4456e591b5bc2ea17d95da8488f2b9
treeba44574f0edbb8d2a45a09ee4751d87e878594a1
parent03544c2b27fa74d2f6763767bf8139c1bcd52606
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