Re: [PATCH 6/7] virtiofsd: Check EOF before short read

2021-05-18 Thread Dr. David Alan Gilbert
* Vivek Goyal (vgo...@redhat.com) wrote: > In virtio_send_data_iov() we are checking first for short read and then > EOF condition. Change the order. Basically check for error and EOF first > and last remaining piece is short ready which will lead to retry > automatically at the end of while loop.

[PATCH 6/7] virtiofsd: Check EOF before short read

2021-05-11 Thread Vivek Goyal
In virtio_send_data_iov() we are checking first for short read and then EOF condition. Change the order. Basically check for error and EOF first and last remaining piece is short ready which will lead to retry automatically at the end of while loop. Just that it is little simpler to read to the