# Re: \[PATCH net v9 01/14\] afs: Fix lack of loop around sendmsg() to rxrpc

- From: David Howells \<dhowells@redhat.com\>
- Date: 2026-09-10 10:18:48 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/09/17545132
- Thread: https://ratatoskr.run/netdev/2026/09/17524826/t.md

```text
David Laight [ref] wrote:

> > +	do {
> > +		ret = rxrpc_kernel_send_data(call->net->socket, rxcall, &msg,
> > +					     msg_data_left(&msg),
> > +					     afs_notify_end_request_tx);
> > +		if (ret < 0)
> > +			goto error_do_abort;
> > +	} while (msg_data_left(&msg) > 0);
> 
> Is there any reason you didn't change rxrpc_kernel_send_data() instead?

My thought was to keep rxrpc_kernel_send_data() operating reasonably similarly
to sendmsg(), but I think you're right - that's a better way to do this since
I don't think there's a circumstance that I wouldn't then loop around it.

David

```
