Page MenuHomeFreeBSD

bhyve/virtio-scsi: preallocate all I/O requests
Needs ReviewPublic

Authored by rosenfeld_grumpf.hope-2000.org on Thu, Oct 30, 7:38 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 27, 4:19 AM
Unknown Object (File)
Thu, Nov 27, 1:12 AM
Unknown Object (File)
Wed, Nov 26, 10:21 PM
Unknown Object (File)
Tue, Nov 25, 7:19 PM
Unknown Object (File)
Mon, Nov 24, 3:04 AM
Unknown Object (File)
Sat, Nov 22, 4:40 AM
Unknown Object (File)
Wed, Nov 12, 6:11 PM
Unknown Object (File)
Wed, Nov 12, 3:18 AM

Details

Reviewers
jhb
corvink
markj
Group Reviewers
bhyve
Summary

By preallocating all I/O requests on all queues, we can take most
allocations out of the hot I/O code paths and simplify the code
significantly. While here, make sure we check all allocations for
success and make sure to handle failures gracefully.

Additionally, check for I/O request validity as early as possible,
and return illegal requests immediately.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 68273
Build 65156: arc lint + arc unit