]> git.baikalelectronics.ru Git - kernel.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)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 8 Jul 2011 00:45:37 +0000 (20:45 -0400)
commitdf975edf41287b05aa213fcafd5ce92c68935b9c
tree1fbcb0cd1febf70dc6ae6ded0e3b98ae738c1ef8
parentacfcc1f63f7b584cdca31590ca37d7c9b0d91d3d
SUNRPC: Fix a race between work-queue and rpc_killall_tasks

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
net/sunrpc/sched.c