Page MenuHomeFreeBSD

cam(4): Improve XPT_DEV_MATCH
ClosedPublic

Authored by mav on Oct 5 2021, 2:13 AM.
Tags
Referenced Files
Unknown Object (File)
Sat, Dec 21, 10:09 AM
Unknown Object (File)
Tue, Dec 10, 11:39 PM
Unknown Object (File)
Tue, Dec 3, 12:34 AM
Unknown Object (File)
Oct 22 2024, 2:23 AM
Unknown Object (File)
Oct 3 2024, 8:55 PM
Unknown Object (File)
Oct 1 2024, 9:25 PM
Unknown Object (File)
Sep 30 2024, 4:33 AM
Unknown Object (File)
Sep 30 2024, 4:25 AM
Subscribers
None

Details

Summary

Remove *_MATCH_NONE enums, making no sense so and never used.
Make *_MATCH_ANY enums 0 (no any match flags set), previously used by *_MATCH_NONE.
Bump CAM_VERSION to 0x1a reflecting those changes and add compat shims.

When traversing through buses and devices do not descend if we can already see that requested pattern does not match the bus or device. It allows to save significant amount of time on system with thousands of disks when doing limited searches.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mav requested review of this revision.Oct 5 2021, 2:13 AM
mav created this revision.
imp added inline comments.
sys/cam/cam_ccb.h
472–473

I'd leave the trailing , here and elsewhere.

This revision is now accepted and ready to land.Oct 5 2021, 3:09 AM

Restore commas, fix compat shims.

This revision now requires review to proceed.Oct 5 2021, 4:00 PM
This revision was not accepted when it landed; it landed in state Needs Review.Oct 5 2021, 7:04 PM
This revision was automatically updated to reflect the committed changes.