]> www.infradead.org Git - users/hch/misc.git/commitdiff
block: remove redundant passthrough check in blk_mq_need_time_stamp()
authorJens Axboe <axboe@kernel.dk>
Wed, 2 Oct 2024 20:06:47 +0000 (14:06 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 22 Oct 2024 14:14:56 +0000 (08:14 -0600)
Simply checking the rq_flags is enough to determine if accounting is
being done for this request.

Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blk-mq.h

index 4fecf46ef681b357d83e7c64433e1035269fb50c..59e9adf815a491ace0e02e8215e7aea5511d5b4f 100644 (file)
@@ -857,12 +857,6 @@ void blk_mq_end_request_batch(struct io_comp_batch *ib);
  */
 static inline bool blk_mq_need_time_stamp(struct request *rq)
 {
-       /*
-        * passthrough io doesn't use iostat accounting, cgroup stats
-        * and io scheduler functionalities.
-        */
-       if (blk_rq_is_passthrough(rq))
-               return false;
        return (rq->rq_flags & (RQF_IO_STAT | RQF_STATS | RQF_USE_SCHED));
 }