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/virtiofsd/fuse_virtio.c | 45 ++++++++++++++--------------------- > 1 file changed, 18 insertions(+), 27 deletions(-) Reviewed-by: Stefan Hajnoczi