Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754882Ab3CLFkf (ORCPT ); Tue, 12 Mar 2013 01:40:35 -0400 Received: from mail-pb0-f49.google.com ([209.85.160.49]:59050 "EHLO mail-pb0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754155Ab3CLFke (ORCPT ); Tue, 12 Mar 2013 01:40:34 -0400 Date: Mon, 11 Mar 2013 22:40:28 -0700 From: Tejun Heo To: Lei Wen Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, leiwen@marvell.com, wwang27@marvell.com Subject: Re: workqueue panic in 3.4 kernel Message-ID: <20130312054028.GA20037@mtj.dyndns.org> References: <20130306191408.GN1227@htj.dyndns.org> <20130307154907.GB29601@htj.dyndns.org> <20130312051215.GU14556@mtj.dyndns.org> <20130312052426.GV14556@mtj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 623 Lines: 16 On Tue, Mar 12, 2013 at 01:34:56PM +0800, Lei Wen wrote: > > Memory areas aren't always zero on allocation. > > Shouldn't work structure be allocated with kzalloc? It's not required to. work_struct can also be on stack. It's "init" after all. Also, if you require clearing the memory before initing, you would be just shifting problem from INIT to memory clearing. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/