Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

block: skip cgroups for passthrough io

Even if BLK_CGROUP is enabled, it does not work for passthrough io.
So skip setting up blkg for passthrough bio.

Reduced processing gives ~5% hike in peak-performance workload.

Signed-off-by: Kundan Kumar <kundan.kumar@samsung.com>
Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Link: https://lore.kernel.org/r/20231218152722.1768-1-joshi.k@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Kundan Kumar and committed by
Jens Axboe
6c9b9708 0c734c5e

+3
+3
block/blk-cgroup.c
··· 2064 2064 { 2065 2065 struct cgroup_subsys_state *css; 2066 2066 2067 + if (blk_op_is_passthrough(bio->bi_opf)) 2068 + return; 2069 + 2067 2070 rcu_read_lock(); 2068 2071 2069 2072 if (bio->bi_blkg)