summaryrefslogtreecommitdiffstats
path: root/arch/mips/rb532
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-11-02 16:18:20 +0100
committerJens Axboe <axboe@kernel.dk>2022-11-16 17:44:26 +0100
commit759aa12f19155fe4e4fb4740450b4aa4233b7d9f (patch)
treef88d17edd9dfb7e74e988208e0c366093b71753f /arch/mips/rb532
parentmempool: introduce mempool_is_saturated (diff)
downloadlinux-759aa12f19155fe4e4fb4740450b4aa4233b7d9f.tar.xz
linux-759aa12f19155fe4e4fb4740450b4aa4233b7d9f.zip
bio: don't rob starving biosets of bios
Biosets keep a mempool, so as long as requests complete we can always can allocate and have forward progress. Percpu bio caches break that assumptions as we may complete into the cache of one CPU and after try and fail to allocate with another CPU. We also can't grab from another CPU's cache without tricky sync. If we're allocating with a bio while the mempool is undersaturated, remove REQ_ALLOC_CACHE flag, so on put it will go straight to mempool. It might try to free into mempool more requests than required, but assuming than there is no memory starvation in the system it'll stabilise and never hit that path. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/aa150caf9c263fa92269e86d7826cc8fa65f38de.1667384020.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch/mips/rb532')
0 files changed, 0 insertions, 0 deletions