Skip to content

fs/buffer: publish max_buffer_heads with release semantics - #2659

Open
vfsci-bot[bot] wants to merge 1 commit into
vfs.base.cifrom
pw/1170873/vfs.base.ci
Open

vfsci-bot[bot] wants to merge 1 commit into
vfs.base.cifrom
pw/1170873/vfs.base.ci

Conversation

@vfsci-bot

@vfsci-bot vfsci-bot Bot commented Sep 22, 2026

Copy link
Copy Markdown

Series: https://patchwork.kernel.org/project/linux-fsdevel/list/?series=1170873
Submitter: Jaidev Shastri
Version: 1
Patches: 1/1
Message-ID: <20260921-mb-fs-buffer-v1-1-e9ce65e8df43@vt.edu>
Base: vfs.base.ci
Lore: https://lore.kernel.org/linux-fsdevel/20260921-mb-fs-buffer-v1-1-e9ce65e8df43@vt.edu


Automated by ml2pr

buffer_init() creates bh_cachep and then computes max_buffer_heads, both
with plain stores. recalc_bh_state() reads max_buffer_heads with a plain
load from alloc_buffer_head() and free_buffer_head(), on any CPU.

Store it with smp_store_release() and read it with smp_load_acquire().

Found with MBCheck, a static herd7-based memory consistency checker.

Signed-off-by: Jaidev Shastri <jaidevshastri@vt.edu>
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