Commit 2c50ec98 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarKeith Busch <kbusch@kernel.org>
Reviewed-by: default avatarAnuj Gupta <anuj20.g@samsung.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 89338056
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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));
}