virtiofs: No need to check fpq->connected state
authorVivek Goyal <vgoyal@redhat.com>
Tue, 15 Oct 2019 17:46:23 +0000 (13:46 -0400)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 21 Oct 2019 13:57:07 +0000 (15:57 +0200)
commit7ee1e2e631dbf0ff0df2a67a1e01ba3c1dce7a46
treebf400ed515d2997f85285994c0fb73cd322908c0
parent51fecdd2555b3e0e05a78d30093c638d164a32f9
virtiofs: No need to check fpq->connected state

In virtiofs we keep per queue connected state in virtio_fs_vq->connected
and use that to end request if queue is not connected. And virtiofs does
not even touch fpq->connected state.

We probably need to merge these two at some point of time. For now,
simplify the code a bit and do not worry about checking state of
fpq->connected.

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