HomeFreeBSD

virtio_random: Pipeline fetching the data

Description

virtio_random: Pipeline fetching the data

Queue an initial fetch of data during attach and after every read
rather than synchronously fetching data and polling for completion.

If data has not been returned from an previous fetch during read,
just return EAGAIN rather than blocking.

Co-authored-by: John Baldwin <jhb@FreeBSD.org>

Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D41656

Details

Provenance
jmgAuthored on Sep 5 2023, 3:59 PM
jhbCommitted on Sep 5 2023, 3:59 PM
Reviewer
markj
Differential Revision
D41656: virtio_random: Pipeline fetching the data
Parents
rG5b7a776f4818: getdirentries.2: Reference dir(5)
Branches
Unknown
Tags
Unknown