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

(cherry picked from commit f1c5a2e3a625053e2b70d5b1777d849a4d9328f2)

Details

Provenance
jmgAuthored on Sep 5 2023, 3:59 PM
jhbCommitted on Oct 11 2023, 3:09 PM
Reviewer
markj
Differential Revision
D41656: virtio_random: Pipeline fetching the data
Parents
rG21923b24c4cf: amd64 db_trace: Reject unaligned frame pointers
Branches
Unknown
Tags
Unknown