diff options
author | Mike Snitzer <snitzer@kernel.org> | 2022-03-24 21:35:24 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-04-18 00:49:40 +0200 |
commit | 0df71650c051ab106c921de257f4b38e9e3dd251 (patch) | |
tree | 39bed0b9aae98b2357378bbfb077a192d2f4dcbd /net/caif | |
parent | Linux 5.18-rc3 (diff) | |
download | linux-0df71650c051ab106c921de257f4b38e9e3dd251.tar.xz linux-0df71650c051ab106c921de257f4b38e9e3dd251.zip |
block: allow using the per-cpu bio cache from bio_alloc_bioset
Replace the BIO_PERCPU_CACHE bio-internal flag with a REQ_ALLOC_CACHE
one that can be passed to bio_alloc / bio_alloc_bioset, and implement
the percpu cache allocation logic in a helper called from
bio_alloc_bioset. This allows any bio_alloc_bioset user to use the
percpu caches instead of having the functionality tied to struct kiocb.
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
[hch: refactored a bit]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220324203526.62306-2-snitzer@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'net/caif')
0 files changed, 0 insertions, 0 deletions