virtiofs: Set FR_SENT flag only after request has been sent
authorVivek Goyal <vgoyal@redhat.com>
Tue, 15 Oct 2019 17:46:24 +0000 (13:46 -0400)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 21 Oct 2019 13:57:07 +0000 (15:57 +0200)
commit5dbe190f341206a7896f7e40c1e3a36933d812f3
tree3129c354c0777d5d1bd0447d9cbfd8ebb9389734
parent7ee1e2e631dbf0ff0df2a67a1e01ba3c1dce7a46
virtiofs: Set FR_SENT flag only after request has been sent

FR_SENT flag should be set when request has been sent successfully sent
over virtqueue. This is used by interrupt logic to figure out if interrupt
request should be sent or not.

Also add it to fqp->processing list after sending it successfully.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/virtio_fs.c