HomeFreeBSD

vtblk: Requeue inside vtblk_request_execute

Description

vtblk: Requeue inside vtblk_request_execute

Most virtio_blk requests are launched from vtblk_startio; prior to this
commit, if vtblk_request_execute failed (e.g. due to a lack of space on
the virtio queue) vtblk_startio would requeue the request to be
reattempted later.

Add a flag "vbr_requeue_on_error" to requests and perform the requeuing
from inside vtblk_request_execute instead.

No functional change intended.

Reviewed by: bryanv, imp
Sponsored by: https://www.patreon.com/cperciva
Differential Revision: https://reviews.freebsd.org/D36665

Details

Provenance
cpercivaAuthored on Sep 18 2022, 4:16 PM
Reviewer
bryanv
Differential Revision
D36665: vtblk: Requeue inside vtblk_request_execute
Parents
rG86f8f5ccb798: vtblk: Make vtblk_request_execute return void.
Branches
Unknown
Tags
Unknown