SUNRPC: Fix a race between work-queue and rpc_killall_tasks
commit7d95a21c6893359dd0bc29663e2ad5554c1a6ed2
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 6 Jul 2011 23:58:23 +0000 (6 19:58 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 3 Aug 2011 19:42:34 +0000 (3 12:42 -0700)
treeb76918fd4525e053827e8bb98367ec9a481e8ffd
parent906179e992c4073bb4849681a4ec71d0bf91707e
SUNRPC: Fix a race between work-queue and rpc_killall_tasks

commit b55c59892e1f3b6c7d4b9ccffb4263e1486fb990 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sunrpc/sched.c