Page MenuHomeFreeBSD

bhyve: use STAILQ in NVMe emulation
ClosedPublic

Authored by chuck on Mar 15 2020, 11:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 22 2023, 9:21 PM
Unknown Object (File)
Dec 20 2023, 4:29 AM
Unknown Object (File)
Nov 30 2023, 1:39 PM
Unknown Object (File)
Nov 11 2023, 3:36 AM
Unknown Object (File)
Nov 9 2023, 3:38 AM
Unknown Object (File)
Nov 4 2023, 4:55 AM
Unknown Object (File)
Oct 29 2023, 11:35 AM
Unknown Object (File)
Oct 8 2023, 2:38 AM
Subscribers

Details

Summary

Use the standard queue(3) macros instead of hand-crafted linked list
code.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 15 2020, 11:42 PM
jhb added inline comments.
usr.sbin/bhyve/pci_nvme.c
1317 ↗(On Diff #69557)

Either move the assert() above the REMOVE similar to the old code or axe it. STAILQ_REMOVE_HEAD will core dump when it dereferences the head pointer before getting to the assert() in the current code.

chuck added inline comments.
usr.sbin/bhyve/pci_nvme.c
1317 ↗(On Diff #69557)

Bah, good catch. Thanks

This revision was automatically updated to reflect the committed changes.
chuck marked an inline comment as done.