Skip to content

block: restore mempool reserves for non-block#790

Open
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
series/1088859=>linus-master
Open

block: restore mempool reserves for non-block#790
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
series/1088859=>linus-master

Conversation

@blktests-ci
Copy link
Copy Markdown

@blktests-ci blktests-ci Bot commented May 3, 2026

Pull request for series with
subject: block: restore mempool reserves for non-block
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1088859

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 3, 2026

Upstream branch: e75a43c
series: https://patchwork.kernel.org/project/linux-block/list/?series=1088859
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 3, 2026

Upstream branch: 66edb90
series: https://patchwork.kernel.org/project/linux-block/list/?series=1088859
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1088859=>linus-master branch from 359b18d to 0346b64 Compare May 3, 2026 02:17
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 25a041f to 6f75bd1 Compare May 4, 2026 10:57
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 4, 2026

Upstream branch: 6d35786
series: https://patchwork.kernel.org/project/linux-block/list/?series=1088859
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1088859=>linus-master branch from 0346b64 to 09731fb Compare May 4, 2026 11:08
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 6f75bd1 to 1f0d33a Compare May 5, 2026 15:39
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 5, 2026

Upstream branch: 6d35786
series: https://patchwork.kernel.org/project/linux-block/list/?series=1088859
version: 1

Commit b520c4e ("block: split bio_alloc_bioset more clearly into a
fast and slowpath") prevents non-blocking allocations from falling back
to mempool_alloc() after the initial slab allocation has failed. This
was based on the assumption that mempool_alloc() would simply retry the
slab and fail again (for non-block).

However, mempool_alloc() also attempts to dip into the pool reserves,
even for non-blocking requests, and this option is no longer available
after adding the early fail. This was noticed through the SCSI generic
module which calls blk_rq_map_user_io() with GFP_ATOMIC.

Remove the check to allow mempool reserves to be used for non-blocking
requests, restoring the previous behavior.

Fixes: b520c4e ("block: split bio_alloc_bioset more clearly into a fast and slowpath")
Signed-off-by: Carlos Llamas <cmllamas@google.com>
@blktests-ci blktests-ci Bot force-pushed the series/1088859=>linus-master branch from 09731fb to efbf1b6 Compare May 5, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants