From: Greg KH <gregkh@linuxfoundation.org>
To: Kanchan Joshi <joshi.k@samsung.com>
Cc: stable@vger.kernel.org, Anuj Gupta <anuj20.g@samsung.com>,
Jens Axboe <axboe@kernel.dk>
Subject: Re: [PATCH 6.1.y] block: fix bio-cache for passthru IO
Date: Thu, 1 Jun 2023 10:47:18 +0100 [thread overview]
Message-ID: <2023060106-untried-jugular-ee6a@gregkh> (raw)
In-Reply-To: <20230529121630.302280-1-joshi.k@samsung.com>
On Mon, May 29, 2023 at 05:46:30PM +0530, Kanchan Joshi wrote:
> From: Anuj Gupta <anuj20.g@samsung.com>
>
> 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: stable@vger.kernel.org # 6.1
> fixes <8af870aa5b847> ("block: enable bio caching use for passthru IO")
>
> Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
> Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
> Link: https://lore.kernel.org/r/20230523111709.145676-1-anuj20.g@samsung.com
> Signed-off-by: Jens Axboe <axboe@kernel.dk>
> (cherry picked from commit 46930b7cc7727271c9c27aac1fdc97a8645e2d00)
> ---
> block/blk-map.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Now queued up, thanks.
greg k-h
prev parent reply other threads:[~2023-06-01 9:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20230529121959epcas5p1817b7f018f3b60495a8374d58b5fec01@epcas5p1.samsung.com>
2023-05-28 7:28 ` FAILED: patch "[PATCH] block: fix bio-cache for passthru IO" failed to apply to 6.1-stable tree gregkh
2023-05-29 12:16 ` [PATCH 6.1.y] block: fix bio-cache for passthru IO Kanchan Joshi
2023-06-01 9:47 ` Greg KH [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2023060106-untried-jugular-ee6a@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=anuj20.g@samsung.com \
--cc=axboe@kernel.dk \
--cc=joshi.k@samsung.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox