Skip to content

nvme_driver: Log pci device id when creating new queues (#2906)#2908

Closed
gurasinghMS wants to merge 1 commit intomicrosoft:release/1.7.2511from
gurasinghMS:cherrypick/release/1.7.2511/pr-2906
Closed

nvme_driver: Log pci device id when creating new queues (#2906)#2908
gurasinghMS wants to merge 1 commit intomicrosoft:release/1.7.2511from
gurasinghMS:cherrypick/release/1.7.2511/pr-2906

Conversation

@gurasinghMS
Copy link
Copy Markdown
Contributor

Clean cherry pick of PR #2906

Minor change. Came across this issue when debugging a case with several queues.

P.S. Had to do some type gymnastics to avoid the immutable reference borrow (string being sent to the info span)

Minor change. Came across this issue when debugging a case with several
queues.

P.S. Had to do some type gymnastics to avoid the immutable reference
borrow (string being sent to the info span)

(cherry picked from commit 1e28edf)
@gurasinghMS gurasinghMS requested a review from a team as a code owner March 7, 2026 01:47
Copilot AI review requested due to automatic review settings March 7, 2026 01:47
@gurasinghMS gurasinghMS requested a review from a team as a code owner March 7, 2026 01:47
@github-actions github-actions bot added the release_1.7.2511 Targets the release/1.7.2511 branch. label Mar 7, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR is a clean cherry-pick of #2906, adding the PCI device ID to the tracing span created when a new NVMe I/O queue is being set up. This helps with debugging scenarios where multiple queues are involved, making it easier to correlate log output with the correct device.

Changes:

  • Capture the PCI device ID via self.device.id().to_owned() to avoid a borrow conflict with the async span.
  • Pass the captured pci_id to the info_span!("create_nvme_io_queue", ...) call so it appears in queue creation traces.

@gurasinghMS
Copy link
Copy Markdown
Contributor Author

Closing this pr. These changes will be bundled together with upcoming changes for hung-on-save fix when create io completion queue commands are slow.

@gurasinghMS gurasinghMS closed this Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_1.7.2511 Targets the release/1.7.2511 branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants