Fix #2503: tell GPU write watch before DirectStorage page writes #3058
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3060"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by tharun-37 on 2026-11-26T05:50:40Z.
write_physical and PageWindow called kernel_will_write (watch::writing) after writing through our own views. The watch must be told before the write so it saves the page's original bytes and keeps the guarded blocks open during the write.
Now report_written returns Writing guards that stay alive during the write, write_physical reports current views after the write, and PageWindow holds pre-write guards until dropped and reports views currently showing the pages on drop.
Fixes #2503.
Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-26T05:58:52Z.
Review: APPROVED
Verified: this is the same bug #3037 fixes (kernel_will_write guards dropped before the write, so the watch never covered it), and this version additionally keeps the post-write report at current views — a page remapped to a new title view mid-write still gets reported, which holding only pre-write guards misses. Drop ordering is explicit and correct in both write_physical and PageWindow::drop. Maintainer note: conflicts with #3037 on the same functions — whichever merges second needs rebasing; this one covers a case #3037 doesn't.
Imported from Marvisak/VIctory. Originally posted by tharun-37 on 2026-11-26T05:51:54Z.
Don't create new PRs; continuing on #3037
Pull request closed