[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120925180235.GC16296@google.com>
Date: Tue, 25 Sep 2012 11:02:35 -0700
From: Tejun Heo <tj@...nel.org>
To: Maxim Levitsky <maximlevitsky@...il.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Alex Dubov <oakad@...oo.com>, linux-kernel@...r.kernel.org
Subject: Re: [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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists