From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH 01/45] Create a dynamically sized pool of threads for doing very slow work items [ver #41] Date: Fri, 21 Nov 2008 00:09:13 -0800 Message-ID: <20081121000913.6506d7b6.akpm@linux-foundation.org> References: <20081120144139.10667.75519.stgit@warthog.procyon.org.uk> <20081120144145.10667.39594.stgit@warthog.procyon.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: trond.myklebust@fys.uio.no, viro@ZenIV.linux.org.uk, nfsv4@linux-nfs.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org To: David Howells Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:49479 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752451AbYKUIKN (ORCPT ); Fri, 21 Nov 2008 03:10:13 -0500 In-Reply-To: <20081120144145.10667.39594.stgit@warthog.procyon.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, 20 Nov 2008 14:41:45 +0000 David Howells wrote: > Create a dynamically sized pool of threads for doing very slow work items, such > as invoking mkdir() or rmdir() - things that may take a long time and may > sleep, holding mutexes/semaphores and hogging a thread, and are thus unsuitable > for workqueues. umm, if they're slow, why not create a kernel thread per operation? Why add the thread pool?