Re: [PATCH 04/13] virtiofsd: Add a helper to send element on virtqueue

2021-10-04 Thread Stefan Hajnoczi
On Thu, Sep 30, 2021 at 11:30:28AM -0400, Vivek Goyal wrote: > We have open coded logic to take locks and push element on virtqueue at > three places. Add a helper and use it everywhere. Code is easier to read and > less number of lines of code. > > Signed-off-by: Vivek Goyal > --- > tools/virti

[PATCH 04/13] virtiofsd: Add a helper to send element on virtqueue

2021-09-30 Thread Vivek Goyal
We have open coded logic to take locks and push element on virtqueue at three places. Add a helper and use it everywhere. Code is easier to read and less number of lines of code. Signed-off-by: Vivek Goyal --- tools/virtiofsd/fuse_virtio.c | 45 ++- 1 file changed