Skip to content

Conversation

@josecm
Copy link
Member

@josecm josecm commented Nov 6, 2025

No description provided.

@miguelafsilva5 miguelafsilva5 self-assigned this Nov 7, 2025
@josecm josecm force-pushed the ref/shmem_lock_init branch from d4b74ea to 538de6c Compare November 12, 2025 23:11
@danielRep danielRep self-requested a review November 13, 2025 11:04
danielRep
danielRep previously approved these changes Nov 13, 2025
miguelafsilva5
miguelafsilva5 previously approved these changes Nov 13, 2025
Copy link
Member

@DavidMCerdeira DavidMCerdeira left a comment

Choose a reason for hiding this comment

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

I'm not understanding the goal here to be honest.
Isn't the end result the same?
I feel like it might be related to separate allocation from initialization, but I'm not sure.
If anything I'd consider moving the .cpu_masters = 0 to the alloc function to avoid iterating the array again.

@josecm josecm requested a review from sandro2pinto as a code owner November 13, 2025 16:41
Signed-off-by: Jose Martins <[email protected]>
@josecm josecm dismissed stale reviews from miguelafsilva5 and danielRep via 47863df November 14, 2025 14:40
@josecm josecm force-pushed the ref/shmem_lock_init branch from 538de6c to 47863df Compare November 14, 2025 14:40
@josecm
Copy link
Member Author

josecm commented Nov 14, 2025

I'm not understanding the goal here to be honest. Isn't the end result the same? I feel like it might be related to separate allocation from initialization, but I'm not sure. If anything I'd consider moving the .cpu_masters = 0 to the alloc function to avoid iterating the array again.

I just think it makes more sense for the lock and the cpu_masters to be initialized in the init function and not in the alloc function. The allocation function should just take care of the allocation. I also don't the iterating this array is performance sensitive (only done once at init, and most likely only a handlful of shmem regions per configuration)

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.

5 participants