diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-01-25 10:26:52 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-01-25 10:26:52 -0800 |
commit | b9fa4cbd8415c57d514a45c5eb6272d40961d6c7 (patch) | |
tree | e9672976c4960b0aafd6c05b48ca2914657f37e8 /net/sunrpc | |
parent | 3cb9871f8160a4789189701eda5af582f3414e55 (diff) | |
parent | edcf9725150e42beeca42d085149f4c88fa97afd (diff) | |
download | linux-stable-b9fa4cbd8415c57d514a45c5eb6272d40961d6c7.tar.gz linux-stable-b9fa4cbd8415c57d514a45c5eb6272d40961d6c7.tar.bz2 linux-stable-b9fa4cbd8415c57d514a45c5eb6272d40961d6c7.zip |
Merge tag 'nfsd-6.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
Pull nfsd fixes from Chuck Lever:
- Fix in-kernel RPC UDP transport
- Fix NFSv4.0 RELEASE_LOCKOWNER
* tag 'nfsd-6.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux:
nfsd: fix RELEASE_LOCKOWNER
SUNRPC: use request size to initialize bio_vec in svc_udp_sendto()
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/svcsock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c index bfb2f78523a8..545017a3daa4 100644 --- a/net/sunrpc/svcsock.c +++ b/net/sunrpc/svcsock.c @@ -717,12 +717,12 @@ static int svc_udp_sendto(struct svc_rqst *rqstp) ARRAY_SIZE(rqstp->rq_bvec), xdr); iov_iter_bvec(&msg.msg_iter, ITER_SOURCE, rqstp->rq_bvec, - count, 0); + count, rqstp->rq_res.len); err = sock_sendmsg(svsk->sk_sock, &msg); if (err == -ECONNREFUSED) { /* ICMP error on earlier request. */ iov_iter_bvec(&msg.msg_iter, ITER_SOURCE, rqstp->rq_bvec, - count, 0); + count, rqstp->rq_res.len); err = sock_sendmsg(svsk->sk_sock, &msg); } |