Re: [PATCH] block: fix race in blk_time_get_ns() returning 0

From: Jens Axboe

Date: Wed Jul 15 2026 - 18:34:40 EST



On Wed, 15 Jul 2026 15:29:50 -0400, Mike Waychison wrote:
> blk_time_get_ns() populates the per-plug cached timestamp and then
> returns it by re-reading the field:
>
> if (!plug->cur_ktime) {
> plug->cur_ktime = ktime_get_ns();
> current->flags |= PF_BLOCK_TS;
> }
> return plug->cur_ktime;
>
> [...]

Applied, thanks!

[1/1] block: fix race in blk_time_get_ns() returning 0
commit: 691b052139c94ee6640ac39e0b764dd3867897c0

Best regards,
--
Jens Axboe