[PATCH wq/for-3.9] workqueue: simplify is-work-item-queued-here test

2013-02-06 Thread Tejun Heo
From: Lai Jiangshan Currently, determining whether a work item is queued on a locked pool involves somewhat convoluted memory barrier dancing. It goes like the following. * When a work item is queued on a pool, work->data is updated before work->entry is linked to the pending list with a

[PATCH wq/for-3.9] workqueue: simplify is-work-item-queued-here test

2013-02-06 Thread Tejun Heo
From: Lai Jiangshan la...@cn.fujitsu.com Currently, determining whether a work item is queued on a locked pool involves somewhat convoluted memory barrier dancing. It goes like the following. * When a work item is queued on a pool, work-data is updated before work-entry is linked to the