[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <cdd1e91b-941f-728d-6be0-34d4886e8d31@kernel.dk>
Date: Tue, 7 Nov 2017 12:45:38 -0700
From: Jens Axboe <axboe@...nel.dk>
To: Shaohua Li <shli@...com>, LKML <linux-kernel@...r.kernel.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Ingo Molnar <mingo@...nel.org>, Tejun Heo <tj@...nel.org>,
Dmitry Vyukov <dvyukov@...gle.com>
Subject: Re: [PATCH V2] kthread: zero the kthread data structure
On 11/07/2017 12:09 PM, Shaohua Li wrote:
> kthread() could bail out early before we initialize blkcg_css (if the
> kthread is killed very early. Please see xchg() statement in kthread()),
> which confuses free_kthread_struct. Instead of moving the blkcg_css
> initialization early, we simply zero the whole 'self' data structure,
> which doesn't sound much overhead.
Applied, thanks Shaohua.
--
Jens Axboe
Powered by blists - more mailing lists