[lkml]   [2014]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC PATCH] cifs: Fix possible deadlock with cifs and work queues
On Wed, Mar 19, 2014 at 03:12:52PM -0400, Steven Rostedt wrote:
> My question to Tejun is, if we create another workqueue, to add the
> rdata->work to, would that prevent the above problem? Or what other
> fixes can we do?

The way I understand workqueues is that we cannot guarantee concurrency
like this. It tries, but there's no guarantee.

WQ_MAX_ACTIVE seems to be a hard upper limit of concurrent workers. So
given 511 other blocked works, the described problem will always happen.

Creating another workqueue doesn't actually create more threads.

There is the kthread_work stuff for if you want a guaranteed worker

 \ /
  Last update: 2014-03-19 21:21    [W:0.089 / U:0.784 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site