Return-Path: Message-ID: <54E4DEDF.1010102@kernel.dk> Date: Wed, 18 Feb 2015 10:50:07 -0800 From: Jens Axboe MIME-Version: 1.0 To: Thadeu Lima de Souza Cascardo CC: linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] blk-throttle: check stats_cpu before reading it from sysfs References: <1424114206-17504-1-git-send-email-cascardo@linux.vnet.ibm.com> In-Reply-To: <1424114206-17504-1-git-send-email-cascardo@linux.vnet.ibm.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: 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