Skip to content

Commit 7ee1e2e

Browse files
rhvgoyalMiklos Szeredi
authored andcommitted
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 <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]>
1 parent 51fecdd commit 7ee1e2e

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

fs/fuse/virtio_fs.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -960,13 +960,6 @@ __releases(fiq->lock)
960960

961961
fpq = &fs->vqs[queue_id].fud->pq;
962962
spin_lock(&fpq->lock);
963-
if (!fpq->connected) {
964-
spin_unlock(&fpq->lock);
965-
req->out.h.error = -ENODEV;
966-
pr_err("virtio-fs: %s disconnected\n", __func__);
967-
fuse_request_end(fc, req);
968-
return;
969-
}
970963
list_add_tail(&req->list, fpq->processing);
971964
spin_unlock(&fpq->lock);
972965
set_bit(FR_SENT, &req->flags);

0 commit comments

Comments
 (0)