[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121221234530.GA30048@fieldses.org>
Date: Fri, 21 Dec 2012 18:45:30 -0500
From: "J. Bruce Fields" <bfields@...ldses.org>
To: "Myklebust, Trond" <Trond.Myklebust@...app.com>
Cc: Dave Jones <davej@...hat.com>,
Linux Kernel <linux-kernel@...r.kernel.org>,
"linux-nfs@...r.kernel.org" <linux-nfs@...r.kernel.org>,
"Adamson, Dros" <Weston.Adamson@...app.com>,
Tejun Heo <tj@...nel.org>
Subject: Re: nfsd oops on Linus' current tree.
On Fri, Dec 21, 2012 at 11:36:51PM +0000, Myklebust, Trond wrote:
> Please reread what I said. There was no obvious circular dependency,
> because nfsiod and rpciod are separate workqueues, both created with
> WQ_MEM_RECLAIM.
Oh, sorry, I read "rpciod" as "nfsiod"!
> Dros' experience shows, however that a call to
> rpc_shutdown_client in an nfsiod work item will deadlock with rpciod
> if the RPC task's work item has been assigned to the same CPU as the
> one running the rpc_shutdown_client work item.
>
> I can't tell right now if that is intentional (in which case the
> WARN_ON in the rpc code is correct), or if it is a bug in the
> workqueue code. For now, we're assuming the former.
Well, Documentation/workqueue.txt says:
"Each wq with WQ_MEM_RECLAIM set has an execution context
reserved for it. If there is dependency among multiple work
items used during memory reclaim, they should be queued to
separate wq each with WQ_MEM_RECLAIM."
And I can't see how it could have been safe to convert
create_single_singlethread_workqueue() callers otherwise.
--b.
--
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