Commit 6c9b9708 authored by Kundan Kumar's avatar Kundan Kumar Committed by Jens Axboe
Browse files

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: default avatarKundan Kumar <kundan.kumar@samsung.com>
Signed-off-by: default avatarKanchan Joshi <joshi.k@samsung.com>
Reviewed-by: default avatarKeith Busch <kbusch@kernel.org>
Link: https://lore.kernel.org/r/20231218152722.1768-1-joshi.k@samsung.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 0c734c5e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2064,6 +2064,9 @@ void bio_associate_blkg(struct bio *bio)
{
	struct cgroup_subsys_state *css;

	if (blk_op_is_passthrough(bio->bi_opf))
		return;

	rcu_read_lock();

	if (bio->bi_blkg)