lkml.org 
[lkml]   [2013]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 10/13] workqueue: add lock_pool_own_work() and remove get_work_pool()
On Fri, Feb 01, 2013 at 02:41:33AM +0800, Lai Jiangshan wrote:
> lock_pool_own_work() reuse lock_pool_queued_work() and lock_pool_executing_work()
> to implement "get the correct own pool and lock" logic. It makes all callings
> to lock_pool_own_work()'s mean/logic are more clear.
>
> get_work_pool() can't get the really pool which owns the work
> and it is not used any more, just remove it.
>
> Add/Use proper locking API.

I like they're being collected into one interface although the name
seems a bit iffy to me. Maybe mark the original two functions as
internal to the new locking interface?

Thanks.

--
tejun


\
 
 \ /
  Last update: 2013-02-04 23:23    [W:0.228 / U:5.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site