Skip to content

tests/bcachefs: cover compaction after migration pressure - #78

Open
Komzpa wants to merge 1 commit into
koverstreet:masterfrom
Komzpa:komzpa/bcachefs-compaction-migration-pressure
Open

tests/bcachefs: cover compaction after migration pressure#78
Komzpa wants to merge 1 commit into
koverstreet:masterfrom
Komzpa:komzpa/bcachefs-compaction-migration-pressure

Conversation

@Komzpa

@Komzpa Komzpa commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Covers koverstreet/bcachefs#832.

Add a bcachefs ktest for the CONFIG_MIGRATION/compaction crash class reported in koverstreet/bcachefs#832. The test mounts and exercises a bcachefs scratch device, touches a large bounded userspace allocation, frees it, then repeatedly triggers /proc/sys/vm/compact_memory so the harness catches any BUG:/Oops: emitted by compaction/migration after bcachefs activity.

Validation:

  • bash -n tests/fs/bcachefs/compaction_migration.ktest
  • tests/fs/bcachefs/compaction_migration.ktest list-tests
  • tests/fs/bcachefs/compaction_migration.ktest deps
  • git diff --check
  • cargo build
  • codex review --base origin/master

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