Page MenuHomeFreeBSD

nvmecontrol: Only do name resolution once for Fabrics connections
ClosedPublic

Authored by jhb on Jan 14 2025, 5:33 PM.
Tags
None
Referenced Files
F176149917: D48456.id149246.diff
Fri, Oct 16, 12:33 PM
Unknown Object (File)
Wed, Oct 14, 6:57 PM
Unknown Object (File)
Wed, Oct 14, 6:55 PM
Unknown Object (File)
Wed, Oct 14, 6:50 PM
Unknown Object (File)
Wed, Oct 14, 6:47 PM
Unknown Object (File)
Wed, Oct 14, 3:57 PM
Unknown Object (File)
Mon, Oct 12, 9:34 PM
Unknown Object (File)
Mon, Oct 12, 9:33 PM
Subscribers

Details

Summary

Reuse the addrinfo structure from the admin queue to establish
connections to I/O queues for the TCP transport.

Sponsored by: Chelsio Communications

Diff Detail

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

Event Timeline

jhb requested review of this revision.Jan 14 2025, 5:33 PM
This revision is now accepted and ready to land.Jan 14 2025, 10:08 PM
dab requested changes to this revision.Jan 18 2025, 1:46 AM
dab added inline comments.
sbin/nvmecontrol/fabrics.c
504

Isn't a freeaddrinfo(list); needed here before the return?

Perhaps a new error-out goto label to consolidate the error cases where just that is needed.

This revision now requires changes to proceed.Jan 18 2025, 1:46 AM
sbin/nvmecontrol/fabrics.c
504

oh my! I missed this, but I think you're right.

sbin/nvmecontrol/fabrics.c
504

Isn't a freeaddrinfo(list); needed here before the return?

Perhaps a new error-out goto label to consolidate the error cases where just that is needed.

Hmmm, if I clear the io[] array earlier, then the existing out label can work for most of these.

This revision is now accepted and ready to land.Jan 24 2025, 1:12 AM