diff options
| author | Anuj Gupta <[email protected]> | 2023-05-23 11:17:09 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-05-23 17:11:29 +0000 |
| commit | 46930b7cc7727271c9c27aac1fdc97a8645e2d00 (patch) | |
| tree | 4e7054e968e8c359ae8083981e48481c2d9093e7 /net/nsh/nsh.c | |
| parent | block, bfq: update Paolo's address in maintainer list (diff) | |
| download | kernel-46930b7cc7727271c9c27aac1fdc97a8645e2d00.tar.gz kernel-46930b7cc7727271c9c27aac1fdc97a8645e2d00.zip | |
block: fix bio-cache for passthru IO
commit <8af870aa5b847> ("block: enable bio caching use for passthru IO")
introduced bio-cache for passthru IO. In case when nr_vecs are greater
than BIO_INLINE_VECS, bio and bvecs are allocated from mempool (instead
of percpu cache) and REQ_ALLOC_CACHE is cleared. This causes the side
effect of not freeing bio/bvecs into mempool on completion.
This patch lets the passthru IO fallback to allocation using bio_kmalloc
when nr_vecs are greater than BIO_INLINE_VECS. The corresponding bio
is freed during call to blk_mq_map_bio_put during completion.
Cc: [email protected] # 6.1
fixes <8af870aa5b847> ("block: enable bio caching use for passthru IO")
Signed-off-by: Anuj Gupta <[email protected]>
Signed-off-by: Kanchan Joshi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/nsh/nsh.c')
0 files changed, 0 insertions, 0 deletions
