[lkml]   [2009]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] md: avoid use of broken kzalloc mempool
    On Tue, 4 Aug 2009 08:03:52 +1000 (EST)
    "NeilBrown" <> wrote:

    > On Tue, August 4, 2009 6:54 am, Sage Weil wrote:
    > > The kzalloc mempool does not re-zero items that have been used and then
    > > returned to the pool. Manually zero the allocated multipath_bh instead.
    > >
    > > CC:
    > > CC: Neil Brown <>
    > > CC: <>

    Sage, why did you cc The patch fixes some bug?
    What is it? Why is the fix sufficiently important to warrant

    > Acked-by: NeilBrown <>

    Thanks, I'll merge it once the above is understood.

    > In fact, you don't even need the memset. After allocation
    > no assumptions are made about the content of the structure.
    > Every field is immediately initialised except retry_list, which
    > is never accessed until after the object is placed on a list.h list.
    > So this code never needed kzalloc_pool.

    Well, that's a bit of a functional change so let us (ie: you ;)) do
    that separately?

     \ /
      Last update: 2009-08-11 23:57    [W:0.022 / U:46.404 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site