mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02:00
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>
This commit is contained in:
parent
8933805623
commit
2c50ec98fc
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user