lkml.org 
[lkml]   [2012]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v3.5-rc1] blkcg: fix blkg_alloc() failure path
    On 06/04/2012 08:21 AM, Tejun Heo wrote:
    > When policy data allocation fails in the middle, blkg_alloc() invokes
    > blkg_free() to destroy the half constructed blkg. This ends up
    > calling pd_exit_fn() on policy datas which didn't go through
    > pd_init_fn(). Fix it by making blkg_alloc() call pd_init_fn()
    > immediately after each policy data allocation.
    >
    > Signed-off-by: Tejun Heo <tj@kernel.org>
    > Acked-by: Vivek Goyal <vgoyal@redhat.com>
    > ---
    > Jens, this was posted as part of "block: implement per-blkg request
    > allocation" patchset[1] but should be applied as fix on v3.5-rc1.

    Applied for 3.5 current, thanks.

    --
    Jens Axboe



    \
     
     \ /
      Last update: 2012-06-04 16:02    [W:0.021 / U:1.292 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site