Hello,
On Fri, Sep 28, 2012 at 05:52:02PM +0800, Lai Jiangshan wrote:
> Main reason: I think the readability of your is the same as mine,
> and your add two lines.
>
> Tiny reason: my code uses only one return. (I don't always keep one return,
> but I try to keep it if it is still clean)
>
> Is
Hello,
On Fri, Sep 28, 2012 at 05:52:02PM +0800, Lai Jiangshan wrote:
Main reason: I think the readability of your is the same as mine,
and your add two lines.
Tiny reason: my code uses only one return. (I don't always keep one return,
but I try to keep it if it is still clean)
Is there
On 09/27/2012 02:28 AM, Tejun Heo wrote:
> On Thu, Sep 27, 2012 at 01:20:35AM +0800, Lai Jiangshan wrote:
>> is_chained_work() is too complicated. we can simply found out
>> whether current task is worker by PF_WQ_WORKER or wq->rescuer.
>>
>> Signed-off-by: Lai Jiangshan
>> ---
>>
On 09/27/2012 02:28 AM, Tejun Heo wrote:
On Thu, Sep 27, 2012 at 01:20:35AM +0800, Lai Jiangshan wrote:
is_chained_work() is too complicated. we can simply found out
whether current task is worker by PF_WQ_WORKER or wq-rescuer.
Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com
---
On Thu, Sep 27, 2012 at 01:20:35AM +0800, Lai Jiangshan wrote:
> is_chained_work() is too complicated. we can simply found out
> whether current task is worker by PF_WQ_WORKER or wq->rescuer.
>
> Signed-off-by: Lai Jiangshan
> ---
> kernel/workqueue.c | 36
is_chained_work() is too complicated. we can simply found out
whether current task is worker by PF_WQ_WORKER or wq->rescuer.
Signed-off-by: Lai Jiangshan
---
kernel/workqueue.c | 36
1 files changed, 12 insertions(+), 24 deletions(-)
diff --git
is_chained_work() is too complicated. we can simply found out
whether current task is worker by PF_WQ_WORKER or wq-rescuer.
Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com
---
kernel/workqueue.c | 36
1 files changed, 12 insertions(+), 24 deletions(-)
On Thu, Sep 27, 2012 at 01:20:35AM +0800, Lai Jiangshan wrote:
is_chained_work() is too complicated. we can simply found out
whether current task is worker by PF_WQ_WORKER or wq-rescuer.
Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com
---
kernel/workqueue.c | 36
8 matches
Mail list logo