Re: [PATCH 2/7] virtiofsd: Get rid of unreachable code in read

2021-05-18 Thread Dr. David Alan Gilbert
* Vivek Goyal (vgo...@redhat.com) wrote: > pvreadv() can return following. > > - error > - 0 in case of EOF > - short read > > We seem to handle all the cases already. We are retrying read in case > of short read. So another check for short read seems like dead code. > Get rid of it. > >

[PATCH 2/7] virtiofsd: Get rid of unreachable code in read

2021-05-11 Thread Vivek Goyal
pvreadv() can return following. - error - 0 in case of EOF - short read We seem to handle all the cases already. We are retrying read in case of short read. So another check for short read seems like dead code. Get rid of it. Signed-off-by: Vivek Goyal --- tools/virtiofsd/fuse_virtio.c | 5