[PATCH 03/31] workqueue: introduce kmem_cache for pool_workqueues

2013-03-01 Thread Tejun Heo
pool_workqueues need to be aligned to 1 << WORK_STRUCT_FLAG_BITS as the lower bits of work->data are used for flags when they're pointing to pool_workqueues. Due to historical reasons, unbound pool_workqueues are allocated using kzalloc() with sufficient buffer area for alignment and aligned

[PATCH 03/31] workqueue: introduce kmem_cache for pool_workqueues

2013-03-01 Thread Tejun Heo
pool_workqueues need to be aligned to 1 WORK_STRUCT_FLAG_BITS as the lower bits of work-data are used for flags when they're pointing to pool_workqueues. Due to historical reasons, unbound pool_workqueues are allocated using kzalloc() with sufficient buffer area for alignment and aligned