]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
SUNRPC: Reinitialise the backchannel request buffers before reuse
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 27 Jul 2022 16:27:54 +0000 (12:27 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 27 Jul 2022 16:45:17 +0000 (12:45 -0400)
commit6622e3a73112fc336c1c2c582428fb5ef18e456a
tree40b81e3638715fe090813c54bd38dd2af040338c
parente35a5e782f67ed76a65ad0f23a484444a95f000f
SUNRPC: Reinitialise the backchannel request buffers before reuse

When we're reusing the backchannel requests instead of freeing them,
then we should reinitialise any values of the send/receive xdr_bufs so
that they reflect the available space.

Fixes: 0d2a970d0ae5 ("SUNRPC: Fix a backchannel race")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/backchannel_rqst.c