workqueue: change BUG_ON() to WARN_ON()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 13 Apr 2012 19:06:58 +0000 (22:06 +0300)
committerTejun Heo <tj@kernel.org>
Mon, 16 Apr 2012 21:54:59 +0000 (14:54 -0700)
commitf5b2552b4ebbeadcadde1532d7bbd3f850719046
tree89bbf52668883f0a4c65ed10bd113a5cc4d75721
parentd3283fb45c06dfd7b1a36da8e6ff39d313f0600c
workqueue: change BUG_ON() to WARN_ON()

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@cs.wisc.edu>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c