Skip to content

Commit f9c2913

Browse files
lrq-maxMiklos Szeredi
authored andcommitted
virtio_fs: remove duplicate check if queue is broken
virtqueue_enable_cb() will call virtqueue_poll() which will check if queue is broken at beginning, so remove the virtqueue_is_broken() call Signed-off-by: Li RongQing <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]>
1 parent 253e524 commit f9c2913

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/fuse/virtio_fs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ static void virtio_fs_hiprio_done_work(struct work_struct *work)
401401
kfree(req);
402402
dec_in_flight_req(fsvq);
403403
}
404-
} while (!virtqueue_enable_cb(vq) && likely(!virtqueue_is_broken(vq)));
404+
} while (!virtqueue_enable_cb(vq));
405405
spin_unlock(&fsvq->lock);
406406
}
407407

@@ -683,7 +683,7 @@ static void virtio_fs_requests_done_work(struct work_struct *work)
683683
list_move_tail(&req->list, &reqs);
684684
spin_unlock(&fpq->lock);
685685
}
686-
} while (!virtqueue_enable_cb(vq) && likely(!virtqueue_is_broken(vq)));
686+
} while (!virtqueue_enable_cb(vq));
687687
spin_unlock(&fsvq->lock);
688688

689689
/* End requests */

0 commit comments

Comments
 (0)