summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-10-02 14:06:47 -0600
committerJens Axboe <axboe@kernel.dk>2024-10-22 08:14:56 -0600
commit2c50ec98fc6cab28df35e0a22a2bcc7957d9d0ab (patch)
tree1527e424a4b46d92d7605e1595a3d3cce5ed3844
parent8933805623fafc0e276ddd8110672068c5bd9763 (diff)
downloadlwn-2c50ec98fc6cab28df35e0a22a2bcc7957d9d0ab.tar.gz
lwn-2c50ec98fc6cab28df35e0a22a2bcc7957d9d0ab.zip
block: remove redundant passthrough check in blk_mq_need_time_stamp()
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>
-rw-r--r--include/linux/blk-mq.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h
index 4fecf46ef681..59e9adf815a4 100644
--- a/include/linux/blk-mq.h
+++ b/include/linux/blk-mq.h
@@ -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));
}