lkml.org 
[lkml]   [2012]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 memstick: support for legacy sony memsticks
Hello,

> * Swithced to using a workqueue.
> Unfortunelly, I still see that workqueue items are executed in parallel
> I suspect that this happens if one work item sleeps. In this case I
> don't want other work items to run too. I fixed this with a mutex, and anyway
> it nice to have it to guaranteee this.

You can use alloc_ordered_workqueue("namefmt", WQ_MEM_RECLAIM). No
mutex needed for inter-work exclusion.

Thanks.

--
tejun


\
 
 \ /
  Last update: 2012-09-25 20:41    [W:0.082 / U:0.540 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site