Skip to content

iosched: split platform backends, add fdatasync and posix path - #1

Open
arun-pathiban-ddog wants to merge 1 commit into
miretskiy:mainfrom
arun-pathiban-ddog:iosched-refactor-posix-fdatasync
Open

iosched: split platform backends, add fdatasync and posix path#1
arun-pathiban-ddog wants to merge 1 commit into
miretskiy:mainfrom
arun-pathiban-ddog:iosched-refactor-posix-fdatasync

Conversation

@arun-pathiban-ddog

Copy link
Copy Markdown

Summary

  • Split default scheduler selection into default_linux.go / default_other.go
  • Add fdatasync_linux.go / fdatasync_other.go for cross-platform fdatasync support
  • Extract direct POSIX syscall path into posix.go; expose NewPosixIO() constructor
  • Refactor BlockingIO to hide the scheduler field, add Scheduler() accessor and Close()
  • Add giouring/flush.go for ring flush support
  • Consolidate tests into sched_test.go and uring_stub_test.go; remove superseded test files

Test plan

  • go test ./iosched/... on Linux (io_uring path)
  • go test ./iosched/... on non-Linux (POSIX fallback path)
  • go test ./giouring/...

🤖 Generated with Claude Code

- Split default scheduler selection into default_linux.go / default_other.go
- Add fdatasync_linux.go / fdatasync_other.go for cross-platform fdatasync
- Extract direct POSIX syscall path into posix.go; expose NewPosixIO()
- Refactor BlockingIO to hide scheduler field, add Scheduler() accessor and Close()
- Add giouring/flush.go for ring flush support
- Consolidate and clean up tests; remove overhead/fanout/regression test files
  that are now covered by the unified sched_test.go and uring_stub_test.go

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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