[PATCH 3/3] workqueue: unfold start_worker() into create_worker()

2014-07-10 Thread Lai Jiangshan
Simply unfold the code of start_worker() into create_worker() and remove the original start_worker() and create_and_start_worker(). maybe_create_worker() also becomes decently shorter. The only trade-off is the introduced overhead that the pool->lock is released and regrabbed after the newly

[PATCH 3/3] workqueue: unfold start_worker() into create_worker()

2014-07-10 Thread Lai Jiangshan
Simply unfold the code of start_worker() into create_worker() and remove the original start_worker() and create_and_start_worker(). maybe_create_worker() also becomes decently shorter. The only trade-off is the introduced overhead that the pool-lock is released and regrabbed after the newly