Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'for-4.16-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq

Pull workqueue fixes from Tejun Heo:
"Two low-impact workqueue commits.

One fixes workqueue creation error path and the other removes the
unused cancel_work()"

* 'for-4.16-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
workqueue: remove unused cancel_work()
workqueue: use put_device() instead of kfree()

+1 -10
-1
include/linux/workqueue.h
··· 456 456 int execute_in_process_context(work_func_t fn, struct execute_work *); 457 457 458 458 extern bool flush_work(struct work_struct *work); 459 - extern bool cancel_work(struct work_struct *work); 460 459 extern bool cancel_work_sync(struct work_struct *work); 461 460 462 461 extern bool flush_delayed_work(struct delayed_work *dwork);
+1 -9
kernel/workqueue.c
··· 3018 3018 return ret; 3019 3019 } 3020 3020 3021 - /* 3022 - * See cancel_delayed_work() 3023 - */ 3024 - bool cancel_work(struct work_struct *work) 3025 - { 3026 - return __cancel_work(work, false); 3027 - } 3028 - 3029 3021 /** 3030 3022 * cancel_delayed_work - cancel a delayed work 3031 3023 * @dwork: delayed_work to cancel ··· 5329 5337 5330 5338 ret = device_register(&wq_dev->dev); 5331 5339 if (ret) { 5332 - kfree(wq_dev); 5340 + put_device(&wq_dev->dev); 5333 5341 wq->wq_dev = NULL; 5334 5342 return ret; 5335 5343 }