Skip to content

Adopt the caller's device block when re-inserting an HBM-only entry. - #728

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_967610679
Open

Adopt the caller's device block when re-inserting an HBM-only entry.#728
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_967610679

Conversation

@copybara-service

Copy link
Copy Markdown

Adopt the caller's device block when re-inserting an HBM-only entry.

An entry that is only in HBM describes a device block and nothing else: no host bytes were ever written for it. When a save gives up, that entry is left behind pointing at a device block the caller then reuses, so a later save driven from it would copy unrelated bytes and the hash could never be admitted again.

Re-inserting such a hash now takes the caller's binding, which is the only current one. Entries that hold host bytes are still pinned in place and left untouched.

An entry that is only in HBM describes a device block and nothing else: no host bytes were ever written for it. When a save gives up, that entry is left behind pointing at a device block the caller then reuses, so a later save driven from it would copy unrelated bytes and the hash could never be admitted again.

Re-inserting such a hash now takes the caller's binding, which is the only current one. Entries that hold host bytes are still pinned in place and left untouched.

PiperOrigin-RevId: 967610679
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.

1 participant