]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
SUNRPC: Fix a race between work-queue and rpc_killall_tasks
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 6 Jul 2011 23:58:23 +0000 (19:58 -0400)
committerAndi Kleen <ak@linux.intel.com>
Mon, 1 Aug 2011 20:55:02 +0000 (13:55 -0700)
commit056f681640dc0ca20276dc15f7cbbc31b8641a1d
treed2a3f63565665ee042fb229fc930856c43b4267e
parent0e7d89101d9f1ab17f4123659bb796d7e4f7bcb8
SUNRPC: Fix a race between work-queue and rpc_killall_tasks

[ upstream commit b55c59892e1f3b6c7d4b9ccffb4263e1486fb990 ]

Since rpc_killall_tasks may modify the rpc_task's tk_action field
without any locking, we need to be careful when dereferencing it.

Reported-by: Ben Greear <greearb@candelatech.com>
Tested-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@kernel.org
Signed-off-by: Andi Kleen <ak@linux.intel.com>
net/sunrpc/sched.c