Re: [patch v2] workqueue: change BUG_ON() to WARN_ON()

From: Tejun Heo
Date: Mon Apr 16 2012 - 17:57:58 EST


On Fri, Apr 13, 2012 at 10:06:58PM +0300, Dan Carpenter wrote:
> This BUG_ON() can be triggered if you call schedule_work() before
> calling INIT_WORK(). It is a bug definitely, but it's nicer to just
> print a stack trace and return.
>
> Reported-by: Matt Renzelmann <mjr@xxxxxxxxxxx>
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

Applied to wq/for-3.5. Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/