Re: [PATCH] blk-throttle: check stats_cpu before reading it from sysfs

From: Jens Axboe
Date: Wed Feb 18 2015 - 13:50:19 EST

On 02/16/2015 11:16 AM, Thadeu Lima de Souza Cascardo wrote:
When reading blkio.throttle.io_serviced in a recently created blkio
cgroup, it's possible to race against the creation of a throttle policy,
which delays the allocation of stats_cpu.

Like other functions in the throttle code, just checking for a NULL
stats_cpu prevents the following oops caused by that race.

Applied for this series, thanks.

Jens Axboe

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at