block: skip cgroups for passthrough io
authorKundan Kumar <kundan.kumar@samsung.com>
Mon, 18 Dec 2023 15:27:22 +0000 (20:57 +0530)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Dec 2023 16:46:53 +0000 (09:46 -0700)
commit6c9b97085c473e380e57cf33c95d2c74444b2a5d
tree36ff5af11bc93f08265aea9ca4c57d3c4838802c
parent0c734c5ea76e333fbb8dd83b5bab46291b38096b
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>
block/blk-cgroup.c