mbox series

[v2,0/2] bio put in-IRQ caching optimisation

Message ID cover.1707314970.git.asml.silence@gmail.com (mailing list archive)
Headers show
Series bio put in-IRQ caching optimisation | expand

Message

Pavel Begunkov Feb. 7, 2024, 2:14 p.m. UTC
Patch 1 is a preparation patch, which enables caching of !IOPOLL bios
for the task context execution.

Patch 2 optimise out local_irq_{save,restore}() from bio_put_percpu_cache()
for in-IRQ completions.

v2: Extend caching to the task context

    Move error path to the end of bio_put_percpu_cache(). It looks uglier,
    but I'm happy to make the change as long as it aligns with the community
    standards and helps folks around.

Pavel Begunkov (2):
  block: extend bio caching to task context
  block: optimise in irq bio put caching

 block/bio.c | 26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)

Comments

Jens Axboe Feb. 8, 2024, 5:19 p.m. UTC | #1
On Wed, 07 Feb 2024 14:14:27 +0000, Pavel Begunkov wrote:
> Patch 1 is a preparation patch, which enables caching of !IOPOLL bios
> for the task context execution.
> 
> Patch 2 optimise out local_irq_{save,restore}() from bio_put_percpu_cache()
> for in-IRQ completions.
> 
> v2: Extend caching to the task context
> 
> [...]

Applied, thanks!

[1/2] block: extend bio caching to task context
      commit: c9f5f3aa19c617fe85085b19abbf7a9a077336d0
[2/2] block: optimise in irq bio put caching
      commit: e516c3fc6c182736aec5418a73f15199640491e2

Best regards,