Skip to content

Improve IRQ driven performance

Jens Axboe io-uring linux-block 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3block: add completion handler for fast pathblock/blk-mq.c+42 -11 reply
2/3block: use singly linked list for bio cacheblock/bio.c+9 -51 reply
3/3block: enable bio allocation cache for IRQ driven IOblock/fops.c fs/io_uring.c include/linux/fs.h+18 -32 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/3R-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCHSET 0/3] Improve IRQ driven performance

Hi,

1/2 are really just optimizations, but were done with the support for using cached bio allocations with IRQ driven IO. The bio recycling is an even bigger win on IRQ driven IO than it was on polling, around a 13% improvement for me.

A caller that is prepared to get a bio passed back at completion time may set IOCB_BIO_PASSBACK in the iocb, and then the completion side may notice this and assign iocb->private and set IOCB_PRIV_IS_BIO and have ->ki_complete() handle the freeing. This works for io_uring as IRQ completions are processed in task context.

Signature · 1 line
Jens Axboe