FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix nsdperf RDMA async poll rebuild by Brian-Hwang · Pull Request #18 · IBM/SpectrumScale_NETWORK_READINESS · GitHub

Fix nsdperf RDMA async poll rebuild - #18

Open
Brian-Hwang wants to merge 1 commit into
IBM:masterfrom
Brian-Hwang:bhwang/STL-77130-nsdperf-async-poll-rebuild
Open

Fix nsdperf RDMA async poll rebuild#18
Brian-Hwang wants to merge 1 commit into
IBM:masterfrom
Brian-Hwang:bhwang/STL-77130-nsdperf-async-poll-rebuild

Conversation

Copy link
Copy Markdown

RdmaAsync::threadBody() rebuilt its poll lists whenever rdmaDevTab.size() differed from lastDevCount, but never updated lastDevCount and never cleared the existing lists before appending. Duplicate nonblocking async FDs could accumulate, so a repeated CLIENT_REREGISTER event could cause a second ibv_get_async_event() call on an already-drained event, returning EAGAIN and terminating nsdperf.

Clear the RDMA device and pollfd lists before repopulating them and record the device count after rebuilding.

RdmaAsync::threadBody() rebuilt its poll lists whenever rdmaDevTab.size() differed from lastDevCount, but never updated lastDevCount and never cleared the existing lists before appending. Duplicate nonblocking async FDs could accumulate, so a repeated CLIENT_REREGISTER event could cause a second ibv_get_async_event() call on an already-drained event, returning EAGAIN and terminating nsdperf.

Clear the RDMA device and pollfd lists before repopulating them and record the device count after rebuilding.

Signed-off-by: Brian-Hwang <brian.hwang@cornelisnetworks.com>
Brian-Hwang force-pushed the bhwang/STL-77130-nsdperf-async-poll-rebuild branch from 11e3bb8 to ee94474 Compare May 28, 2026 14:02

ddalessa left a comment
edited
Loading

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks good to me. Can someone from IBM take a look and approve/merge this if they agree?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL