]> git.baikalelectronics.ru Git - kernel.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)
commited4e07d75940602ff3b3085350cb00c3b4b2144c
tree40b81e3638715fe090813c54bd38dd2af040338c
parent91a71aaa8fc88fc4ff682a2c0a5e3e83a425e678
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: 96bc25b4b5cd ("SUNRPC: Fix a backchannel race")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/backchannel_rqst.c