summaryrefslogtreecommitdiffstats
path: root/block/mq-deadline.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-03-12 22:58:41 +0100
committerJens Axboe <axboe@kernel.dk>2024-03-13 21:12:53 +0100
commitb874d4aae58b92144ec2c8fa5dc0a27c98388fcc (patch)
treed723bc722655adb7460ff8dc321814f022d7ce9a /block/mq-deadline.c
parentMerge tag 'thermal-6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/... (diff)
downloadlinux-b874d4aae58b92144ec2c8fa5dc0a27c98388fcc.tar.xz
linux-b874d4aae58b92144ec2c8fa5dc0a27c98388fcc.zip
block: limit block time caching to in_task() context
We should not have any callers of this from non-task context, but Jakub ran [1] into one from blk-iocost. Rather than risk running into others, or future ones, just limit blk_time_get_ns() to when it is called from a task. Any other usage is invalid. [1] https://lore.kernel.org/lkml/CAHk-=wiOaBLqarS2uFhM1YdwOvCX4CZaWkeyNDY1zONpbYw2ig@mail.gmail.com/ Fixes: da4c8c3d0975 ("block: cache current nsec time in struct blk_plug") Reported-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/mq-deadline.c')
0 files changed, 0 insertions, 0 deletions