Skip to content
Commit f5b2552b authored by Dan Carpenter's avatar Dan Carpenter Committed by Tejun Heo
Browse files

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: default avatarMatt Renzelmann <mjr@cs.wisc.edu>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent d3283fb4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment