On 07/12/2011 10:25 AM, Myklebust, Trond wrote:-----Original Message-----
From: Ben Greear [mailto:greearb@xxxxxxxxxxxxxxx]
Sent: Tuesday, July 12, 2011 1:15 PM
To: Myklebust, Trond
Cc: linux-nfs@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
Subject: Re: [RFC] sunrpc: Fix race between work-queue and
rpc_killall_tasks.
I added lots of locking around the calldata, work-queue logic, and
such, and
still the problem persists w/out hitting any of the debug warnings or
poisoned
values I put in. It almost seems like tk_calldata is just assigned to
two
different tasks.
While poking through the code, I noticed that 'map' is static in
rpcb_getport_async.
That would seem to cause problems if two threads called this method at
the same time, possibly causing tk_calldata to be assigned to two
different
tasks???
Any idea why it is static?
Doh! That is clearly a typo dating all the way back to when Chuck
wrote that function.
Yes, that would definitely explain your problem.
Ok, patch sent. I assume someone will propagate this to stable
as desired?
And assuming this fixes it, can I get some brownie points towards
review of the ip-addr binding patches? :)