Tejun Heo
b196be89cd
workqueue: make alloc_workqueue() take printf fmt and args for name
...
alloc_workqueue() currently expects the passed in @name pointer to remain
accessible. This is inconvenient and a bit silly given that the whole wq
is being dynamically allocated. This patch updates alloc_workqueue() and
friends to take printf format string instead of opaque string and matching
varargs at the end. The name is allocated together with the wq and
formatted.
alloc_ordered_workqueue() is converted to a macro to unify varargs
handling with alloc_workqueue(), and, while at it, add comment to
alloc_workqueue().
None of the current in-kernel users pass in string with '%' as constant
name and this change shouldn't cause any problem.
[akpm@linux-foundation.org: use __printf]
Signed-off-by: Tejun Heo <tj@kernel.org>
Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-01-10 16:30:54 -08:00
..
2011-12-11 10:31:52 -08:00
2012-01-09 12:59:24 -08:00
2011-07-26 16:49:45 -07:00
2012-01-08 13:21:22 -08:00
2012-01-10 16:30:42 -08:00
2012-01-09 12:59:24 -08:00
2012-01-08 13:21:22 -08:00
2012-01-08 12:19:57 -08:00
2012-01-08 12:19:57 -08:00
2011-10-31 09:20:12 -04:00
2011-07-20 14:10:11 -07:00
2012-01-08 14:15:21 -08:00
2012-01-03 22:55:17 -05:00
2011-10-31 09:20:12 -04:00
2012-01-09 12:59:24 -08:00
2012-01-09 12:59:24 -08:00
2011-10-31 19:30:05 -04:00
2011-07-25 20:57:15 -07:00
2011-09-23 12:05:29 +05:30
2012-01-08 13:10:57 -08:00
2012-01-09 12:59:24 -08:00
2011-11-06 19:44:47 -08:00
2011-10-31 09:20:12 -04:00
2011-07-14 12:59:14 +03:00
2011-10-31 09:20:12 -04:00
2012-01-08 13:10:57 -08:00
2011-05-20 08:56:56 +02:00
2012-01-10 16:30:44 -08:00
2011-11-23 09:28:17 -08:00
2011-12-31 11:48:28 -08:00
2011-10-31 09:20:12 -04:00
2011-11-28 08:43:52 -08:00
2012-01-03 16:14:32 -08:00
2011-10-31 09:20:12 -04:00
2011-12-15 14:56:19 +01:00
2011-12-06 20:41:03 +01:00
2011-03-25 17:52:22 -07:00
2011-04-10 17:01:05 +02:00
2011-06-10 15:15:40 +02:00
2011-12-08 23:22:29 +01:00
2011-10-31 09:20:12 -04:00
2011-12-25 23:42:20 +01:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:13 -04:00
2011-11-23 09:28:17 -08:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2012-01-06 08:02:58 -08:00
2011-11-17 12:20:22 +01:00
2011-11-06 19:44:47 -08:00
2011-10-31 09:20:12 -04:00
2011-04-14 08:52:33 +02:00
2011-10-31 09:20:12 -04:00
2011-04-14 08:52:33 +02:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-12-07 23:32:10 +01:00
2011-10-31 09:20:13 -04:00
2011-10-31 09:20:12 -04:00
2011-12-15 14:56:19 +01:00
2011-10-31 09:20:12 -04:00
2012-01-06 08:01:59 -08:00
2011-10-31 09:20:12 -04:00
2012-01-04 15:01:59 -08:00
2011-10-31 09:20:11 -04:00
2011-12-11 10:31:42 -08:00
2011-12-11 10:31:30 -08:00
2011-12-11 10:33:19 -08:00
2011-12-11 10:32:22 -08:00
2011-12-11 10:32:21 -08:00
2011-12-11 10:33:19 -08:00
2011-12-11 10:31:24 -08:00
2011-12-11 10:32:22 -08:00
2011-12-11 10:32:09 -08:00
2012-01-03 22:54:56 -05:00
2011-12-13 07:43:08 -08:00
2011-10-31 09:20:12 -04:00
2011-12-06 08:16:49 +01:00
2011-12-14 14:54:22 -08:00
2011-12-11 10:33:18 -08:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2012-01-10 16:30:54 -08:00
2011-10-31 09:20:12 -04:00
2011-12-11 10:31:38 -08:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-11-06 19:44:47 -08:00
2011-10-31 17:30:44 -07:00
2011-12-15 14:56:19 +01:00
2011-12-20 10:25:04 -08:00
2011-08-12 16:21:35 -05:00
2011-10-31 17:46:07 -07:00
2011-09-19 17:04:37 -07:00
2011-10-31 09:20:12 -04:00
2012-01-06 07:53:34 -08:00
2011-08-10 20:38:14 -04:00
2011-12-15 14:56:19 +01:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-11-06 19:44:47 -08:00
2011-10-31 09:20:12 -04:00
2011-12-21 10:07:39 +01:00
2011-10-31 17:30:53 -07:00
2012-01-10 16:30:54 -08:00