]> www.infradead.org Git - users/dwmw2/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:37:56 +0000 (11:37 +0200)
commitfd70ebf2999be258f15c790f53f3247f9f2f905e
tree25f600efeb0e07cdd573c0853d19a69c94ebb1be
parent59d2e8fa4127c1417a5b3e0f33e59ae8216df720
SUNRPC: Reinitialise the backchannel request buffers before reuse

commit 6622e3a73112fc336c1c2c582428fb5ef18e456a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/backchannel_rqst.c