vdpa_sim_blk: limit the number of request handled per batch
authorStefano Garzarella <sgarzare@redhat.com>
Thu, 30 Jun 2022 15:32:20 +0000 (17:32 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Aug 2022 08:26:07 +0000 (04:26 -0400)
commit9c4df0900f376f28e8e5cca640a10a0085f16b66
tree4b358e8294d8a8f13a190f803097c1b5c6d34b06
parent42a84c09eff355d895723866b1a5ff48f093112a
vdpa_sim_blk: limit the number of request handled per batch

Limit the number of requests (4 per queue as for vdpa_sim_net) handled
in a batch to prevent the worker from using the CPU for too long.

Suggested-by: Eugenio PĂ©rez <eperezma@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20220630153221.83371-3-sgarzare@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vdpa/vdpa_sim/vdpa_sim_blk.c