diff options
Diffstat (limited to 'include/linux/workqueue.h')
| -rw-r--r-- | include/linux/workqueue.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index 0eae11fc7a23..1cdabfb813ab 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h | |||
| @@ -219,7 +219,7 @@ static inline unsigned int work_static(struct work_struct *work) { return 0; } | |||
| 219 | \ | 219 | \ |
| 220 | __init_work((_work), _onstack); \ | 220 | __init_work((_work), _onstack); \ |
| 221 | (_work)->data = (atomic_long_t) WORK_DATA_INIT(); \ | 221 | (_work)->data = (atomic_long_t) WORK_DATA_INIT(); \ |
| 222 | lockdep_init_map(&(_work)->lockdep_map, #_work, &__key, 0); \ | 222 | lockdep_init_map(&(_work)->lockdep_map, "(work_completion)"#_work, &__key, 0); \ |
| 223 | INIT_LIST_HEAD(&(_work)->entry); \ | 223 | INIT_LIST_HEAD(&(_work)->entry); \ |
| 224 | (_work)->func = (_func); \ | 224 | (_work)->func = (_func); \ |
| 225 | } while (0) | 225 | } while (0) |
| @@ -399,7 +399,7 @@ __alloc_workqueue_key(const char *fmt, unsigned int flags, int max_active, | |||
| 399 | static struct lock_class_key __key; \ | 399 | static struct lock_class_key __key; \ |
| 400 | const char *__lock_name; \ | 400 | const char *__lock_name; \ |
| 401 | \ | 401 | \ |
| 402 | __lock_name = #fmt#args; \ | 402 | __lock_name = "(wq_completion)"#fmt#args; \ |
| 403 | \ | 403 | \ |
| 404 | __alloc_workqueue_key((fmt), (flags), (max_active), \ | 404 | __alloc_workqueue_key((fmt), (flags), (max_active), \ |
| 405 | &__key, __lock_name, ##args); \ | 405 | &__key, __lock_name, ##args); \ |
