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)
(cherry picked from commit b7f5e993476f6e445895383e73aed01741f8b9cf)

Approved by: re (karels)

Details

Provenance
jmgAuthored on Sep 5 2023, 3:59 PM
jhbCommitted on Oct 16 2023, 11:04 PM
Reviewer
markj
Differential Revision
D41656: virtio_random: Pipeline fetching the data
Parents
rG7bc17b59f802: Handle MOVED_LIBS in list-old-files
Branches
Unknown
Tags
Unknown