block: update cached timestamp post schedule/preemption block-issue-ts
authorJens Axboe <axboe@kernel.dk>
Tue, 16 Jan 2024 16:18:39 +0000 (09:18 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 26 Jan 2024 21:37:21 +0000 (14:37 -0700)
commit1a3d70bf0c0e9f711b1d653d05df201eee68ab5b
tree47edbcb7d55bdfffe820169ab157c8c36585fdfc
parent1ff288ab5cf42de6b12cbcdb1d0db1ea73723656
block: update cached timestamp post schedule/preemption

Mark the task as having a cached timestamp when set assign it, so we
can efficiently check if it needs updating post being scheduled back in.
This covers both the actual schedule out case, which would've flushed
the plug, and the preemption case which doesn't touch the plugged
requests (for many reasons, one of them being then we'd need to have
preemption disabled around plug state manipulation).

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk.h
include/linux/blkdev.h
include/linux/sched.h
kernel/sched/core.c