From: Trond Myklebust Date: Thu, 19 Jul 2007 20:32:20 +0000 (-0400) Subject: SUNRPC: Fix a race in rpciod_down() X-Git-Tag: v2.6.23-rc3~68^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b247bbf1da69ce376aa1ceb8057331214589e366;p=pandora-kernel.git SUNRPC: Fix a race in rpciod_down() The commit 4ada539ed77c7a2bbcb75cafbbd7bd8d2b9bef7b lead to the unpleasant possibility of an asynchronous rpc_task being required to call rpciod_down() when it is complete. This again means that the rpciod workqueue may get to call destroy_workqueue on itself -> hang... Change rpciod_up/rpciod_down to just get/put the module, and then create/destroy the workqueues on module load/unload. Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed