From: Andrew Morton <akpm@linux-foundation.org>
To: NeilBrown <neilb@suse.de>
Cc: sage@newdream.net, linux-kernel@vger.kernel.org,
linux-raid@vger.kernel.org, stable@kernel.org
Subject: Re: [PATCH] md: avoid use of broken kzalloc mempool
Date: Tue, 11 Aug 2009 14:52:58 -0700 [thread overview]
Message-ID: <20090811145258.6cd823d6.akpm@linux-foundation.org> (raw)
In-Reply-To: <8604b01355a1ff1ec6397d223c28b1d5.squirrel@neil.brown.name>
On Tue, 4 Aug 2009 08:03:52 +1000 (EST)
"NeilBrown" <neilb@suse.de> 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: linux-raid@vger.kernel.org
> > CC: Neil Brown <neilb@suse.de>
> > CC: <stable@kernel.org>
Sage, why did you cc stable@kernel.org? The patch fixes some bug?
What is it? Why is the fix sufficiently important to warrant
backporting?
> Acked-by: NeilBrown <neilb@suse.de>
>
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?
next prev parent reply other threads:[~2009-08-11 21:52 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-03 20:54 [PATCH] md: avoid use of broken kzalloc mempool Sage Weil
2009-08-03 20:54 ` Sage Weil
2009-08-03 20:54 ` [PATCH] ibmvscsi: avoid unnecessary use of kzalloc_pool Sage Weil
2009-08-03 20:54 ` [PATCH] mm: remove broken 'kzalloc' mempool Sage Weil
2009-08-03 20:54 ` Sage Weil
2009-08-03 20:57 ` Sage Weil
2009-08-03 20:57 ` Sage Weil
2009-08-03 21:19 ` [PATCH] ibmvscsi: avoid unnecessary use of kzalloc_pool Brian King
2009-08-03 21:13 ` [PATCH] md: avoid use of broken kzalloc mempool Andi Kleen
2009-08-03 21:13 ` Andi Kleen
2009-08-03 21:29 ` Sage Weil
2009-08-03 22:03 ` NeilBrown
2009-08-03 22:03 ` NeilBrown
2009-08-11 21:52 ` Andrew Morton [this message]
2009-08-11 22:03 ` Sage Weil
2009-08-12 23:17 ` Neil Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090811145258.6cd823d6.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
--cc=sage@newdream.net \
--cc=stable@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.