virtiofsd: Set req->reply_sent right after sending reply
authorVivek Goyal <vgoyal@redhat.com>
Tue, 18 May 2021 21:35:38 +0000 (17:35 -0400)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 26 May 2021 17:39:32 +0000 (18:39 +0100)
commitb5fd59cf907df7fa2272426010c4d264682347f2
tree0c8340cb06db294774269b2db2fcbe4e12b8cf5e
parent1a5fff8e63a5ab55ccdec4f134b2f96453bf789f
virtiofsd: Set req->reply_sent right after sending reply

There is no reason to set it in label "err". We should be able to set
it right after sending reply. It is easier to read.

Also got rid of label "err" because now only thing it was doing was
return a code. We can return from the error location itself and no
need to first jump to label "err".

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Connor Kuehl <ckuehl@redhat.com>
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Message-Id: <20210518213538.693422-8-vgoyal@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tools/virtiofsd/fuse_virtio.c