block: skip start/end time stamping for passthrough IO
authorKundan Kumar <kundan.kumar@samsung.com>
Fri, 22 Dec 2023 10:17:07 +0000 (15:47 +0530)
committerJens Axboe <axboe@kernel.dk>
Fri, 22 Dec 2023 14:14:15 +0000 (07:14 -0700)
commit8e6e83d77227d9ba39e0c7b50693f1b4f8728006
tree537e52890dd44621656badf5dd52b390213bfa9e
parentf70a4792287c71c13bf0d9193a5dfc5e411cf4e2
block: skip start/end time stamping for passthrough IO

commit 41fa722239b4 ("blk-mq: do not include passthrough requests in I/O
accounting")' disables I/O accounting for passthrough requests. Since tools
like 'iostat' do not show anything useful for passthrough I/O, it's
wasteful to do start/end time-stamping. So do away with that.

Avoiding the time-stamping improves the I/O performance by ~7%

Signed-off-by: Kundan Kumar <kundan.kumar@samsung.com>
Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Link: https://lore.kernel.org/r/20231222101707.6921-1-kundan.kumar@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blk-mq.h